TrackingWorkflowSuspendedEventArgs Class
Collapse the table of content
Expand the table of content

TrackingWorkflowSuspendedEventArgs Class

Note: This API is now obsolete.

Contains information about the reason that a workflow instance was suspended.

Namespace:   System.Workflow.Runtime.Tracking
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)


<ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>
Public Class TrackingWorkflowSuspendedEventArgs
	Inherits EventArgs


Contains information about the reason that a workflow instance was suspended. This can come from the Suspend (string error) or the Error property that you set on the SuspendActivity activity.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


Returns a string that represents the current object.(Inherited from Object.)


This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

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.


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 .94818da2-c3c4-4a13-b47a-a0fb30dbbf1c

Shared Sub WriteSuspendedEventArgs(ByVal eventDescription As String, ByVal suspendedEventArgs As TrackingWorkflowSuspendedEventArgs, ByVal eventDataTime As DateTime)
    Console.WriteLine(vbCrLf + "Suspended Event Arguments Read From Tracking Database:")
    Console.WriteLine("EventDataTime: " + eventDataTime.ToString(CultureInfo.CurrentCulture))
    Console.WriteLine("EventDescription: " + eventDescription)
    Console.WriteLine("SuspendedEventArgs Info: " + suspendedEventArgs.Error)
End Sub

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2015 Microsoft