編輯

共用方式為


ProcessesStreamingTraceSourceExtensions.UseThreadExitEvents Method

Definition

Overloads

UseThreadExitEvents(IStreamingTraceSource, IThreadExitEventConsumer)

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

UseThreadExitEvents(IStreamingTraceSource, ThreadExitEventCallback)

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

UseThreadExitEvents(IStreamingTraceSource, ConsumerSchedule, ThreadExitEventCallback)

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

UseThreadExitEvents(IStreamingTraceSource, IThreadExitEventConsumer)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IThreadExitEventConsumer

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

UseThreadExitEvents(IStreamingTraceSource, ThreadExitEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
ThreadExitEventCallback

The callback to register.

Applies to

UseThreadExitEvents(IStreamingTraceSource, ConsumerSchedule, ThreadExitEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
ThreadExitEventCallback

The callback to register.

Applies to