TerminateWorkflow.Exception 属性

定义

获取或设置导致实例终止的异常。

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)

属性值

异常。

注解

如果仅设置了 Terminate,则传递到 WorkflowApplicationTerminatedException 的异常为 Reason。 如果仅设置了 Exception,则会将该异常传递到 Terminate。 如果同时 Reason 设置了 和 ExceptionWorkflowApplicationTerminatedException 则会使用指定的 Reason传递 ,并将 Exception 设置为异常的 InnerException 属性。 如果两者均未设置,则会创建默认 WorkflowApplicationTerminatedException

适用于