TerminateWorkflow.Exception Property

Definition

Gets or sets the exception that provoked the instance termination.

public:
 property System::Activities::InArgument<Exception ^> ^ Exception { System::Activities::InArgument<Exception ^> ^ get(); void set(System::Activities::InArgument<Exception ^> ^ value); };
public System.Activities.InArgument<Exception> Exception { get; set; }
member this.Exception : System.Activities.InArgument<Exception> with get, set
Public Property Exception As InArgument(Of Exception)

Property Value

The exception.

Remarks

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.

Applies to