TraceSourceExtensions.Use 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.
Overloads
Use(ITraceSource, TraceEventCallback) |
Registers a callback to receive events when the trace is processed. |
Use(ITraceSource, IReadOnlyList<Guid>, TraceEventCallback) |
Registers a callback to receive events from specified providers when the trace is processed. |
Use(ITraceSource, TraceEventCallback)
Registers a callback to receive events when the trace is processed.
public static void Use (this Microsoft.Windows.EventTracing.ITraceSource trace, Microsoft.Windows.EventTracing.TraceEventCallback process);
static member Use : Microsoft.Windows.EventTracing.ITraceSource * Microsoft.Windows.EventTracing.TraceEventCallback -> unit
<Extension()>
Public Sub Use (trace As ITraceSource, process As TraceEventCallback)
Parameters
- trace
- ITraceSource
The trace from which to access the data.
- process
- TraceEventCallback
The callback to register.
Remarks
Callbacks that do not need to receive events from all providers should use Use(ITraceSource, IReadOnlyList<Guid>, TraceEventCallback) for better performance.
This part of the API is in preview and under active development. It may change in future releases.
Applies to
Use(ITraceSource, IReadOnlyList<Guid>, TraceEventCallback)
Registers a callback to receive events from specified providers when the trace is processed.
public static void Use (this Microsoft.Windows.EventTracing.ITraceSource trace, System.Collections.Generic.IReadOnlyList<Guid> providerIds, Microsoft.Windows.EventTracing.TraceEventCallback process);
static member Use : Microsoft.Windows.EventTracing.ITraceSource * System.Collections.Generic.IReadOnlyList<Guid> * Microsoft.Windows.EventTracing.TraceEventCallback -> unit
<Extension()>
Public Sub Use (trace As ITraceSource, providerIds As IReadOnlyList(Of Guid), process As TraceEventCallback)
Parameters
- trace
- ITraceSource
The trace from which to access the data.
- providerIds
- IReadOnlyList<Guid>
A list of provider IDs that filters the events the callback will receive.
- process
- TraceEventCallback
The callback to register.
Remarks
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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈