TrackingWorkflowSuspendedEventArgs Class
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)
'Declaration <SerializableAttribute> _ Public Class TrackingWorkflowSuspendedEventArgs Inherits EventArgs 'Usage Dim instance As TrackingWorkflowSuspendedEventArgs
/** @attribute SerializableAttribute() */ public class TrackingWorkflowSuspendedEventArgs extends EventArgs
SerializableAttribute public class TrackingWorkflowSuspendedEventArgs extends EventArgs
Not applicable.
A TrackingWorkflowSuspendedEventArgs is generated by the runtime tracking infrastructure when a workflow instance is suspended. If the TrackingProfile associated with a workflow instance includes a WorkflowTrackPoint configured for a TrackingWorkflowEvent, then the workflow tracking infrastructure puts a TrackingWorkflowSuspendedEventArgs in EventArgs in the WorkflowTrackingRecord that it sends to the Tracking service.
Note: |
|---|
| TrackingWorkflowSuspendedEventArgs is used only by the runtime tracking service to pass information in a WorkflowTrackingRecord. The data for a WorkflowRuntime.WorkflowSuspended event is passed in a WorkflowSuspendedEventArgs. |
The following code example demonstrates a method, named WriteSuspendedEventArgs, which captures a TrackingWorkflowSuspendedEventArgs. The code writes information from the method's arguments to the console, including the value of the Error property.
This code example is part of the EventArgs Tracking SDK Sample from the Program.cs file. For more information, see EventArgs Tracking Sample.
static void WriteSuspendedEventArgs(string eventDescription, TrackingWorkflowSuspendedEventArgs suspendedEventArgs, DateTime eventDataTime) { Console.WriteLine("\nSuspended Event Arguments Read From Tracking Database:\n"); Console.WriteLine("EventDataTime: " + eventDataTime.ToString()); Console.WriteLine("EventDescription: " + eventDescription); Console.WriteLine("SuspendedEventArgs Info: " + suspendedEventArgs.Error); }
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: