IWorkflowInstanceManagement.BeginSuspend(Guid, String, AsyncCallback, Object) 方法
定义
开始异步操作以挂起指定的工作流实例。Begins an asynchronous operation to suspend the specified workflow instance.
public:
IAsyncResult ^ BeginSuspend(Guid instanceId, System::String ^ reason, AsyncCallback ^ callback, System::Object ^ state);
[System.ServiceModel.OperationContract(AsyncPattern=true, Name="Suspend")]
public IAsyncResult BeginSuspend (Guid instanceId, string reason, AsyncCallback callback, object state);
[<System.ServiceModel.OperationContract(AsyncPattern=true, Name="Suspend")>]
abstract member BeginSuspend : Guid * string * AsyncCallback * obj -> IAsyncResult
Public Function BeginSuspend (instanceId As Guid, reason As String, callback As AsyncCallback, state As Object) As IAsyncResult
参数
- instanceId
- Guid
要挂起的工作流实例的 GUID 标识符。The GUID identifier of the workflow instance to suspend.
- reason
- String
挂起工作流实例的原因。The reason to suspend the workflow instance.
- callback
- AsyncCallback
可接收异步操作完成通知的异步回调委托。The asynchronous callback delegate that receives the notification of the asynchronous operation completion.
- state
- Object
一个由应用程序指定的对象,包含与异步挂起操作相关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous suspend operation.
返回
- 属性
注解
挂起进程会临时暂停工作流实例。The suspend process temporarily halts a workflow instance.