TerminateWorkflow.Reason Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A string input argument with the reason for the workflow instance termination.
public:
property System::Activities::InArgument<System::String ^> ^ Reason { System::Activities::InArgument<System::String ^> ^ get(); void set(System::Activities::InArgument<System::String ^> ^ value); };
public System.Activities.InArgument<string> Reason { get; set; }
member this.Reason : System.Activities.InArgument<string> with get, set
Public Property Reason As InArgument(Of String)
Property Value
The reason for workflow termination.
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.