.NET Framework Class Library WorkflowInvoker..::.BeginInvoke Method (IDictionary<(Of <(String, Object>)>), TimeSpan, AsyncCallback, Object)
Namespace:
System.Activities
Assembly:
System.Activities (in System.Activities.dll)

Syntax
Public Function BeginInvoke ( _
inputs As IDictionary(Of String, Object), _
timeout As TimeSpan, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
public IAsyncResult BeginInvoke(
IDictionary<string, Object> inputs,
TimeSpan timeout,
AsyncCallback callback,
Object state
)
public:
IAsyncResult^ BeginInvoke(
IDictionary<String^, Object^>^ inputs,
TimeSpan timeout,
AsyncCallback^ callback,
Object^ state
)
member BeginInvoke :
inputs:IDictionary<string, Object> *
timeout:TimeSpan *
callback:AsyncCallback *
state:Object -> IAsyncResult

Remarks
To be notified when the workflow is complete and retrieve the output parameters of the workflow, call EndInvoke(IAsyncResult) from the callback method.If EndInvoke(IAsyncResult) is called before the workflow completes, it blocks until the workflow completes.If the workflow does not complete within the specified time-out interval the workflow is aborted and a TimeoutException is thrown when EndInvoke(IAsyncResult) is called. Note |
|---|
The TimeoutException is only thrown if the time-out interval elapses and the workflow becomes idle during execution.A workflow that takes longer than the specified time-out interval to complete completes successfully if the workflow does not become idle. |
This method invokes a workflow asynchronously using the IAsyncResult asynchronous design pattern.For more information, seeAsynchronous Programming Overview.

Version Information
.NET FrameworkSupported in: 4 .NET Framework Client ProfileSupported in: 4

.NET Framework Security

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

See Also
|
Biblioteca de clases de .NET Framework WorkflowInvoker..::.BeginInvoke (Método) (IDictionary<(Of <(String, Object>)>), TimeSpan, AsyncCallback, Object) Invoca un flujo de trabajo de forma asincrónica utilizando el diccionario de parámetros de entrada IDictionary<(Of <(TKey, TValue>)>) especificado, el intervalo de tiempo de espera, el delegado AsyncCallback y el estado proporcionado por el usuario.
Espacio de nombres:
System.Activities
Ensamblado:
System.Activities (en System.Activities.dll)

Sintaxis
Public Function BeginInvoke ( _
inputs As IDictionary(Of String, Object), _
timeout As TimeSpan, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
public IAsyncResult BeginInvoke(
IDictionary<string, Object> inputs,
TimeSpan timeout,
AsyncCallback callback,
Object state
)
public:
IAsyncResult^ BeginInvoke(
IDictionary<String^, Object^>^ inputs,
TimeSpan timeout,
AsyncCallback^ callback,
Object^ state
)
member BeginInvoke :
inputs:IDictionary<string, Object> *
timeout:TimeSpan *
callback:AsyncCallback *
state:Object -> IAsyncResult

Comentarios
Para recibir una notificación cuando se complete el flujo de trabajo y recuperar los parámetros de salida de dicho flujo de trabajo, llame a EndInvoke(IAsyncResult) desde el método callback.Si se llama a EndInvoke(IAsyncResult) antes de que se complete el flujo de trabajo, la llamada queda bloqueada hasta que se completa el flujo de trabajo.Si el flujo de trabajo no se completa dentro del intervalo de tiempo de espera especificado, se anula el flujo de trabajo y se produce una excepción TimeoutException cuando se llama a EndInvoke(IAsyncResult). Nota |
|---|
La excepción TimeoutException solo se produce si transcurre el tiempo de espera y el flujo de trabajo queda inactivo durante la ejecución.Un flujo de trabajo que tarda en completarse más tiempo que el especificado se completa correctamente si el flujo de trabajo no queda inactivo. |
Este método invoca de forma asincrónica un flujo de trabajo utilizando el modelo de diseño asincrónico de la interfaz IAsyncResult.Para obtener más información, veaAsynchronous Programming Overview.

Información de versión
.NET FrameworkCompatible con: 4 .NET Framework Client ProfileCompatible con: 4

Seguridad de .NET Framework

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Vea también
|