TraceSourceExtensions.Use Method

Definition

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