EventsTraceSourceExtensions.UseGenericEvents Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseGenericEvents(ITraceSource) |
Provides manifested and TraceLogging events from a trace. |
UseGenericEvents(ITraceSource, GenericEventSettings) |
Provides a subset of manifested or TraceLogging events from a trace. |
UseGenericEvents(ITraceSource, Guid[]) |
Provides a subset of manifested or TraceLogging events from a trace. |
UseGenericEvents(ITraceSource)
Provides manifested and TraceLogging events from a trace.
public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Events.IGenericEventDataSource> UseGenericEvents (this Microsoft.Windows.EventTracing.ITraceSource trace);
static member UseGenericEvents : Microsoft.Windows.EventTracing.ITraceSource -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Events.IGenericEventDataSource>
<Extension()>
Public Function UseGenericEvents (trace As ITraceSource) As IPendingResult(Of IGenericEventDataSource)
Parameters
- trace
- ITraceSource
The trace from which to access the data.
Returns
A pending result that, after the trace is processed, provides manifested and TraceLogging events from the trace.
Remarks
Windows Performance Analyzer provides this data via the Generic Events table (when Event Type is Manifested or TraceLogging).
Applies to
UseGenericEvents(ITraceSource, GenericEventSettings)
Provides a subset of manifested or TraceLogging events from a trace.
public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Events.IGenericEventDataSource> UseGenericEvents (this Microsoft.Windows.EventTracing.ITraceSource trace, Microsoft.Windows.EventTracing.Events.GenericEventSettings settings);
static member UseGenericEvents : Microsoft.Windows.EventTracing.ITraceSource * Microsoft.Windows.EventTracing.Events.GenericEventSettings -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Events.IGenericEventDataSource>
<Extension()>
Public Function UseGenericEvents (trace As ITraceSource, settings As GenericEventSettings) As IPendingResult(Of IGenericEventDataSource)
Parameters
- trace
- ITraceSource
The trace from which to access the data.
- settings
- GenericEventSettings
Settings that indicate which events to process and how to process them.
Returns
A pending result that, after the trace is processed, provides a subset of manifested or TraceLogging events from the trace.
Remarks
Windows Performance Analyzer provides this data via the Generic Events table (when Event Type is Manifested or TraceLogging).
Applies to
UseGenericEvents(ITraceSource, Guid[])
Provides a subset of manifested or TraceLogging events from a trace.
public static Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Events.IGenericEventDataSource> UseGenericEvents (this Microsoft.Windows.EventTracing.ITraceSource trace, params Guid[] providerIds);
static member UseGenericEvents : Microsoft.Windows.EventTracing.ITraceSource * Guid[] -> Microsoft.Windows.EventTracing.IPendingResult<Microsoft.Windows.EventTracing.Events.IGenericEventDataSource>
<Extension()>
Public Function UseGenericEvents (trace As ITraceSource, ParamArray providerIds As Guid()) As IPendingResult(Of IGenericEventDataSource)
Parameters
- trace
- ITraceSource
The trace from which to access the data.
- providerIds
- Guid[]
A list of provider IDs to filter which events to process.
Returns
A pending result that, after the trace is processed, provides a subset of manifested or TraceLogging events from the trace.
Remarks
Windows Performance Analyzer provides this data via the Generic Events table (when Event Type is Manifested or TraceLogging).
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應