Modifier

Partager via


ProcessesStreamingTraceSourceExtensions.UseThreadSetNameEvents Method

Definition

Overloads

UseThreadSetNameEvents(IStreamingTraceSource, IThreadSetNameEventConsumer)

Registers a consumer to receive parsed thread set name events when the trace is processed.

UseThreadSetNameEvents(IStreamingTraceSource, ThreadSetNameEventCallback)

Registers a callback to receive parsed thread set name events when the trace is processed.

UseThreadSetNameEvents(IStreamingTraceSource, ConsumerSchedule, ThreadSetNameEventCallback)

Registers a callback to receive parsed thread set name events when the trace is processed.

UseThreadSetNameEvents(IStreamingTraceSource, IThreadSetNameEventConsumer)

Registers a consumer to receive parsed thread set name events when the trace is processed.

public static void UseThreadSetNameEvents (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.Processes.IThreadSetNameEventConsumer consumer);
static member UseThreadSetNameEvents : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.Processes.IThreadSetNameEventConsumer -> unit
<Extension()>
Public Sub UseThreadSetNameEvents (streamingTrace As IStreamingTraceSource, consumer As IThreadSetNameEventConsumer)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IThreadSetNameEventConsumer

The callback to call with the event parsing result.

Remarks

Event consumers that need to run in a specific pass can inherit from IScheduledConsumer.

Applies to

UseThreadSetNameEvents(IStreamingTraceSource, ThreadSetNameEventCallback)

Registers a callback to receive parsed thread set name events when the trace is processed.

public static void UseThreadSetNameEvents (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.Processes.ThreadSetNameEventCallback process);
static member UseThreadSetNameEvents : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.Processes.ThreadSetNameEventCallback -> unit
<Extension()>
Public Sub UseThreadSetNameEvents (streamingTrace As IStreamingTraceSource, process As ThreadSetNameEventCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
ThreadSetNameEventCallback

The callback to register.

Applies to

UseThreadSetNameEvents(IStreamingTraceSource, ConsumerSchedule, ThreadSetNameEventCallback)

Registers a callback to receive parsed thread set name events when the trace is processed.

public static void UseThreadSetNameEvents (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.ConsumerSchedule schedule, Microsoft.Windows.EventTracing.Processes.ThreadSetNameEventCallback process);
static member UseThreadSetNameEvents : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.ConsumerSchedule * Microsoft.Windows.EventTracing.Processes.ThreadSetNameEventCallback -> unit
<Extension()>
Public Sub UseThreadSetNameEvents (streamingTrace As IStreamingTraceSource, schedule As ConsumerSchedule, process As ThreadSetNameEventCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
ThreadSetNameEventCallback

The callback to register.

Applies to