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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應