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.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈