WorkflowControlClient.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

用户定义的状态数据。The user-defined state data.

返回

IAsyncResult

异步挂起操作。The asynchronous suspend 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 the workflow instance is suspended.

callback
AsyncCallback

可接收异步操作完成通知的异步回调委托。The asynchronous callback delegate that receives the notification of the asynchronous operation completion.

state
Object

用户定义的状态数据。The user-defined state data.

返回

IAsyncResult

异步挂起操作。The asynchronous suspend operation.

适用于