TerminateWorkflow.Exception Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the exception that provoked the instance termination.

Namespace:   System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

public InArgument<Exception> Exception { get; set; }

Property Value

Type: System.Activities.InArgument<Exception>

The exception.

The exception that is passed to Terminate is a WorkflowApplicationTerminatedException if only Reason is set. If only Exception is set, that exception is passed to Terminate. If both Reason and Exception are set, a WorkflowApplicationTerminatedException is passed with the specified Reason, and Exception is set as the exception’s InnerException property. If neither is set, a default WorkflowApplicationTerminatedException is created.

.NET Framework
Available since 4.0
Return to top
Show: