編輯

共用方式為


StreamingTraceSourceExtensions.UseUnparsedEvents Method

Definition

Overloads

UseUnparsedEvents(IStreamingTraceSource, IEventConsumer)

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

UseUnparsedEvents(IStreamingTraceSource, TraceEventCallback)

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

UseUnparsedEvents(IStreamingTraceSource, ConsumerSchedule, TraceEventCallback)

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

UseUnparsedEvents(IStreamingTraceSource, IReadOnlyList<Guid>, TraceEventCallback)

Registers a callback to receive events from specified providers when the trace is processed.

UseUnparsedEvents(IStreamingTraceSource, IReadOnlyList<Guid>, ConsumerSchedule, TraceEventCallback)

Registers a callback to receive events from specified providers when the trace is processed.

UseUnparsedEvents(IStreamingTraceSource, IEventConsumer)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

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.

Applies to

UseUnparsedEvents(IStreamingTraceSource, TraceEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

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 UseUnparsedEvents(IStreamingTraceSource, IReadOnlyList<Guid>, TraceEventCallback) for better performance.

Applies to

UseUnparsedEvents(IStreamingTraceSource, ConsumerSchedule, TraceEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
TraceEventCallback

The callback to register.

Remarks

Callbacks that do not need to receive events from all providers should use UseUnparsedEvents(IStreamingTraceSource, IReadOnlyList<Guid>, TraceEventCallback) for better performance.

Applies to

UseUnparsedEvents(IStreamingTraceSource, IReadOnlyList<Guid>, TraceEventCallback)

Registers a callback to receive events from specified providers when the trace is processed.

public static void UseUnparsedEvents (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, System.Collections.Generic.IReadOnlyList<Guid> providerIds, Microsoft.Windows.EventTracing.TraceEventCallback process);
static member UseUnparsedEvents : Microsoft.Windows.EventTracing.IStreamingTraceSource * System.Collections.Generic.IReadOnlyList<Guid> * Microsoft.Windows.EventTracing.TraceEventCallback -> unit
<Extension()>
Public Sub UseUnparsedEvents (streamingTrace As IStreamingTraceSource, providerIds As IReadOnlyList(Of Guid), process As TraceEventCallback)

Parameters

streamingTrace
IStreamingTraceSource

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.

Applies to

UseUnparsedEvents(IStreamingTraceSource, IReadOnlyList<Guid>, ConsumerSchedule, TraceEventCallback)

Registers a callback to receive events from specified providers when the trace is processed.

public static void UseUnparsedEvents (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, System.Collections.Generic.IReadOnlyList<Guid> providerIds, Microsoft.Windows.EventTracing.ConsumerSchedule schedule, Microsoft.Windows.EventTracing.TraceEventCallback process);
static member UseUnparsedEvents : Microsoft.Windows.EventTracing.IStreamingTraceSource * System.Collections.Generic.IReadOnlyList<Guid> * Microsoft.Windows.EventTracing.ConsumerSchedule * Microsoft.Windows.EventTracing.TraceEventCallback -> unit
<Extension()>
Public Sub UseUnparsedEvents (streamingTrace As IStreamingTraceSource, providerIds As IReadOnlyList(Of Guid), schedule As ConsumerSchedule, process As TraceEventCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

providerIds
IReadOnlyList<Guid>

A list of provider IDs that filters the events the callback will receive.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
TraceEventCallback

The callback to register.

Applies to