WorkflowSuspendedEventArgs.Error 属性
定义
获取对工作流实例挂起的原因的说明。Gets the description of why the workflow instance was suspended.
public:
property System::String ^ Error { System::String ^ get(); };
public string Error { get; }
member this.Error : string
Public ReadOnly Property Error As String
属性值
对工作流实例挂起的原因的说明。The description of why the workflow instance was suspended.
注解
如果宿主将工作流实例挂起,它将在 string 参数中向 WorkflowInstance.Suspend 提供将其挂起的原因。If the host suspends the workflow instance, it supplies a reason for the suspension in the string parameter to WorkflowInstance.Suspend. 如果工作流由 SuspendActivity 活动挂起,则由 SuspendActivity.Error 提供原因。If the workflow is suspended by a SuspendActivity activity, the reason is supplied by SuspendActivity.Error. 否则,工作流运行时引擎将提供此挂起的原因。Otherwise, the workflow runtime engine supplies a reason for the suspension.