WindowInFocusStreamingTraceSourceExtensions.UseFocusChangeEvents Method

Definition

Overloads

UseFocusChangeEvents(IStreamingTraceSource, FocusChangeEventCallback)

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

UseFocusChangeEvents(IStreamingTraceSource, IFocusChangeEventConsumer)

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

UseFocusChangeEvents(IStreamingTraceSource, ConsumerSchedule, FocusChangeEventCallback)

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

UseFocusChangeEvents(IStreamingTraceSource, FocusChangeEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
FocusChangeEventCallback

The callback to register.

Applies to

UseFocusChangeEvents(IStreamingTraceSource, IFocusChangeEventConsumer)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IFocusChangeEventConsumer

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

UseFocusChangeEvents(IStreamingTraceSource, ConsumerSchedule, FocusChangeEventCallback)

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

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

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
FocusChangeEventCallback

The callback to register.

Applies to