Export (0) Print
Expand All

TrackingWorkflowExceptionEventArgs Class

Contains data associated with an exception that occurs during the execution of a workflow instance.

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

public class TrackingWorkflowExceptionEventArgs extends EventArgs

When an exception occurs during the execution of a workflow instance and a TrackingProfile that is associated with the workflow instance includes a WorkflowTrackPoint configured for a TrackingWorkflowEvent.Exception, the workflow tracking infrastructure sets EventArgs to an TrackingWorkflowExceptionEventArgs in the WorkflowTrackingRecord that it sends to the tracking service.

NoteNote:

TrackingWorkflowExceptionEventArgs is used only by the runtime tracking service to pass information in a WorkflowTrackingRecord.

The following code example demonstrates a method, named WriteExceptionEventArgs, which captures a TrackingWorkflowExceptionEventArgs. The code checks whether the Exception property is a null reference (Nothing in Visual Basic) (Nothing in Visual Basic).

If it is not, the code writes the message associated with the Exception property to the console. In addition, the code converts the value of the OriginalActivityPath property to a string and writes it to the console.

This code example is part of the EventArgs Tracking SDK sample from the Program.cs file. For more information, see EventArgs Tracking Sample.

No code example is currently available or this language may not be supported.

System.Object
  System.EventArgs
    System.Workflow.Runtime.Tracking.TrackingWorkflowExceptionEventArgs

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft