Represents a collection of keywords that describe events to be captured on demand while recording. The library requests the provider to log its state information when the provider is enabled. You can trigger the capturestate of the provider by wpr -capturestateondemand command. If the Operation attribute is specified, the Keyword elements can be set or added to the collection.
The following code example shows how this element is used.
<EventProvider Id="sample-provider" Name="SampleProvider" NonPagedMemory="true" Level="5">
<Keywords>
<Keyword Value="0x98"/> <!-- Provider is enabled with these keywords throughout tracing session -->
</Keywords>
<CaptureStateOnDemand>
<Keyword Value="0xff4"/> <!-- Provider is enabled with these keywords when user initiates wpr -capturestateondemand command. -->
</CaptureStateOnDemand>
</EventProvider>