ITraceSource.Use(IEventConsumer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a consumer to receive events when the trace is processed.
public void Use (Microsoft.Windows.EventTracing.IEventConsumer consumer);
abstract member Use : Microsoft.Windows.EventTracing.IEventConsumer -> unit
Public Sub Use (consumer As IEventConsumer)
Parameters
- consumer
- IEventConsumer
The event consumer to register.
Remarks
Event consumers that do not need to receive events from all providers should inherit from IFilteredEventConsumer for better performance.
Event consumers that need to run across two passes through the trace can inherit from ITwoPassEventConsumer (or the related IFilteredTwoPassEventConsumer and/or ICompletableTwoPassEventConsumer).
Event consumers that need to run in a specific pass can inherit from IScheduledConsumer.
This part of the API is in preview and under active development. It may change in future releases.