WorkflowUpdateableControlClient.BeginSuspend 方法
定义
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation.
重载
| BeginSuspend(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation. |
| BeginSuspend(Guid, String, AsyncCallback, Object) |
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation. |
BeginSuspend(Guid, AsyncCallback, Object)
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation.
public:
IAsyncResult ^ BeginSuspend(Guid instanceId, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginSuspend (Guid instanceId, AsyncCallback callback, object state);
member this.BeginSuspend : Guid * AsyncCallback * obj -> IAsyncResult
Public Function BeginSuspend (instanceId As Guid, callback As AsyncCallback, state As Object) As IAsyncResult
参数
- instanceId
- Guid
要挂起的工作流实例。The workflow instance to suspend.
- callback
- AsyncCallback
可接收异步操作完成通知的异步回调委托。The asynchronous callback delegate that receives the notification of the asynchronous operation completion.
- state
- Object
一个包含与异步挂起操作关联的状态信息的用户对象。A user-defined object that contains state information associated with the asynchronous suspend operation.
返回
表示异步操作状态的 IAsyncResult 对象。The IAsyncResult object that represents the status of the asynchronous operation.
适用于
BeginSuspend(Guid, String, AsyncCallback, Object)
开始一个异步操作,该操作将挂起指定的操作。Begins an asynchronous operation that suspends the specified operation.
public:
IAsyncResult ^ BeginSuspend(Guid instanceId, System::String ^ reason, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginSuspend (Guid instanceId, string reason, AsyncCallback callback, object state);
member this.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
要挂起的工作流实例。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
一个包含与异步挂起操作关联的状态信息的用户对象。A user-defined object that contains state information associated with the asynchronous suspend operation.
返回
表示异步操作状态的 IAsyncResult 对象。The IAsyncResult object that represents the status of the asynchronous operation.