Edit

Share via


WindowInFocusTraceSourceExtensions.UseWindowInFocus(ITraceSource) Method

Definition

Provides data from a trace about changes to the active UI window in focus.

public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.WindowInFocus.IWindowInFocusDataSource> UseWindowInFocus (this Microsoft.Windows.EventTracing.ITraceSource trace);
static member UseWindowInFocus : Microsoft.Windows.EventTracing.ITraceSource -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.WindowInFocus.IWindowInFocusDataSource>
<Extension()>
Public Function UseWindowInFocus (trace As ITraceSource) As IPendingResult(Of IWindowInFocusDataSource)

Parameters

trace
ITraceSource

The trace from which to access the data.

Returns

A pending result that, after the trace is processed, provides data from the trace about changes to the active UI window in focus.

Remarks

Windows Performance Analyzer provides this data via the Window in Focus table.

Applies to