Modifier

Partager via


PowerTraceSourceExtensions.UseSystemPowerSourceData(ITraceSource) Method

Definition

Provides data from a trace about the active system power source (AC vs DC).

public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Power.ISystemPowerSourceDataSource> UseSystemPowerSourceData (this Microsoft.Windows.EventTracing.ITraceSource trace);
static member UseSystemPowerSourceData : Microsoft.Windows.EventTracing.ITraceSource -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Power.ISystemPowerSourceDataSource>
<Extension()>
Public Function UseSystemPowerSourceData (trace As ITraceSource) As IPendingResult(Of ISystemPowerSourceDataSource)

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 the active system power source (AC vs DC).

Remarks

Windows Performance Analyzer provides this data via the System Power Source table.

Applies to