WorkflowUpdateableControlClient.SuspendAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始非同步暫停操作。
多載
| 名稱 | Description |
|---|---|
| SuspendAsync(Guid) |
開始非同步暫停操作。 |
| SuspendAsync(Guid, Object) |
開始非同步暫停操作。 |
| SuspendAsync(Guid, String) |
開始非同步暫停操作。 |
| SuspendAsync(Guid, String, Object) |
開始非同步暫停操作。 |
SuspendAsync(Guid)
開始非同步暫停操作。
public:
void SuspendAsync(Guid instanceId);
public void SuspendAsync(Guid instanceId);
member this.SuspendAsync : Guid -> unit
Public Sub SuspendAsync (instanceId As Guid)
參數
- instanceId
- Guid
要暫停工作流程實例。
備註
此方法在任務中儲存所有非使用例外,該方法的同步對應程式可拋出這些例外。 如果回傳的任務中儲存了例外,該例外會在等待任務時拋出。 使用例外錯誤,例如 ArgumentException,仍會同步拋出。 關於儲存的例外,請參見由 Suspend(Guid)拋出的例外。
適用於
SuspendAsync(Guid, Object)
開始非同步暫停操作。
public:
void SuspendAsync(Guid instanceId, System::Object ^ userState);
public void SuspendAsync(Guid instanceId, object userState);
member this.SuspendAsync : Guid * obj -> unit
Public Sub SuspendAsync (instanceId As Guid, userState As Object)
參數
- instanceId
- Guid
要暫停工作流程實例。
- userState
- Object
一個由使用者定義的物件,包含與非同步暫停操作相關的狀態資訊。
適用於
SuspendAsync(Guid, String)
開始非同步暫停操作。
public:
void SuspendAsync(Guid instanceId, System::String ^ reason);
public void SuspendAsync(Guid instanceId, string reason);
member this.SuspendAsync : Guid * string -> unit
Public Sub SuspendAsync (instanceId As Guid, reason As String)
參數
- instanceId
- Guid
要暫停工作流程實例。
- reason
- String
暫停工作流程實例的原因。
備註
此方法在任務中儲存所有非使用例外,該方法的同步對應程式可拋出這些例外。 如果回傳的任務中儲存了例外,該例外會在等待任務時拋出。 使用例外錯誤,例如 ArgumentException,仍會同步拋出。 關於儲存的例外,請參見由 Suspend(Guid, String)拋出的例外。
適用於
SuspendAsync(Guid, String, Object)
開始非同步暫停操作。
public:
void SuspendAsync(Guid instanceId, System::String ^ reason, System::Object ^ userState);
public void SuspendAsync(Guid instanceId, string reason, object userState);
member this.SuspendAsync : Guid * string * obj -> unit
Public Sub SuspendAsync (instanceId As Guid, reason As String, userState As Object)
參數
- instanceId
- Guid
要暫停工作流程實例。
- reason
- String
暫停工作流程實例的原因。
- userState
- Object
一個使用者定義的物件,包含與非同步執行操作相關的狀態資訊。