ScheduledTaskStreamingTraceSourceExtensions.UseScheduledTasks 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
UseScheduledTasks(IStreamingTraceSource, IScheduledTaskConsumer) |
Registers a consumer to receive scheduled task data when the trace is processed. |
UseScheduledTasks(IStreamingTraceSource, ScheduledTaskCallback) |
Registers a consumer to receive scheduled task data when the trace is processed. |
UseScheduledTasks(IStreamingTraceSource, ConsumerSchedule, ScheduledTaskCallback) |
Registers a consumer to receive scheduled task data when the trace is processed. |
UseScheduledTasks(IStreamingTraceSource, IScheduledTaskConsumer)
Registers a consumer to receive scheduled task data when the trace is processed.
public static void UseScheduledTasks (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.ScheduledTasks.IScheduledTaskConsumer consumer);
static member UseScheduledTasks : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.ScheduledTasks.IScheduledTaskConsumer -> unit
<Extension()>
Public Sub UseScheduledTasks (streamingTrace As IStreamingTraceSource, consumer As IScheduledTaskConsumer)
Parameters
- streamingTrace
- IStreamingTraceSource
The trace from which to access the data.
- consumer
- IScheduledTaskConsumer
The callback to call with the result.
Remarks
Event consumers that need to run in a specific pass can inherit from IScheduledConsumer.
Applies to
UseScheduledTasks(IStreamingTraceSource, ScheduledTaskCallback)
Registers a consumer to receive scheduled task data when the trace is processed.
public static void UseScheduledTasks (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.ScheduledTasks.ScheduledTaskCallback process);
static member UseScheduledTasks : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.ScheduledTasks.ScheduledTaskCallback -> unit
<Extension()>
Public Sub UseScheduledTasks (streamingTrace As IStreamingTraceSource, process As ScheduledTaskCallback)
Parameters
- streamingTrace
- IStreamingTraceSource
The trace from which to access the data.
- process
- ScheduledTaskCallback
The callback to register.
Applies to
UseScheduledTasks(IStreamingTraceSource, ConsumerSchedule, ScheduledTaskCallback)
Registers a consumer to receive scheduled task data when the trace is processed.
public static void UseScheduledTasks (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.ConsumerSchedule schedule, Microsoft.Windows.EventTracing.ScheduledTasks.ScheduledTaskCallback process);
static member UseScheduledTasks : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.ConsumerSchedule * Microsoft.Windows.EventTracing.ScheduledTasks.ScheduledTaskCallback -> unit
<Extension()>
Public Sub UseScheduledTasks (streamingTrace As IStreamingTraceSource, schedule As ConsumerSchedule, process As ScheduledTaskCallback)
Parameters
- streamingTrace
- IStreamingTraceSource
The trace from which to access the data.
- schedule
- ConsumerSchedule
The schedule indicating when to parse the events.
- process
- ScheduledTaskCallback
The callback to register.