Gets or sets the exception that provoked the instance termination.
Assembly: System.Activities (in System.Activities.dll)
The exception that is passed to Terminate is a WorkflowApplicationTerminatedException if only Reason is set. If only is set, that exception is passed to Terminate. If both Reason and are set, a WorkflowApplicationTerminatedException is passed with the specified Reason, and is set as the exception’s InnerException property. If neither is set, a default WorkflowApplicationTerminatedException is created.