Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
WorkflowInvoker..::.BeginInvoke Method (IDictionary<(Of <(String, Object>)>), TimeSpan, AsyncCallback, Object)

Invokes a workflow asynchronously using the specified IDictionary<(Of <(TKey, TValue>)>) of input parameters, time-out interval, AsyncCallback, and user-provided state.

Namespace:  System.Activities
Assembly:  System.Activities (in System.Activities.dll)
Visual Basic
Public Function BeginInvoke ( _
    inputs As IDictionary(Of String, Object), _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
C#
public IAsyncResult BeginInvoke(
    IDictionary<string, Object> inputs,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
)
Visual C++
public:
IAsyncResult^ BeginInvoke(
    IDictionary<String^, Object^>^ inputs, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
)
F#
member BeginInvoke : 
        inputs:IDictionary<string, Object> * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 

Parameters

inputs
Type: System.Collections.Generic..::.IDictionary<(Of <(String, Object>)>)
The dictionary of input parameters to the workflow, keyed by argument name.
timeout
Type: System..::.TimeSpan
The interval in which the workflow must complete before it is aborted and a TimeoutException is thrown.
callback
Type: System..::.AsyncCallback
The method to be called when the workflow has completed.
state
Type: System..::.Object
An optional application-specific object that contains information about the asynchronous operation.

Return Value

Type: System..::.IAsyncResult
A reference to the asynchronous invoke operation.

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.

NoteNote

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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.
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)
Visual Basic
Public Function BeginInvoke ( _
    inputs As IDictionary(Of String, Object), _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
C#
public IAsyncResult BeginInvoke(
    IDictionary<string, Object> inputs,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
)
Visual C++
public:
IAsyncResult^ BeginInvoke(
    IDictionary<String^, Object^>^ inputs, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
)
F#
member BeginInvoke : 
        inputs:IDictionary<string, Object> * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 

Parámetros

inputs
Tipo: System.Collections.Generic..::.IDictionary<(Of <(String, Object>)>)
Diccionario de parámetros de entrada al flujo de trabajo, organizados por nombre de argumento.
timeout
Tipo: System..::.TimeSpan
Intervalo de tiempo en el que se debe completar el flujo de trabajo antes de quedar anulado y de que se produzca una excepción TimeoutException.
callback
Tipo: System..::.AsyncCallback
El método al que llamar cuando se ha completado el flujo de trabajo.
state
Tipo: System..::.Object
Objeto opcional específico de la aplicación que contiene información sobre la operación asincrónica.

Valor devuelto

Tipo: System..::.IAsyncResult
Referencia a la operación de invocación asincrónica.

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

NotaNota

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.

.NET Framework

Compatible con: 4

.NET Framework Client Profile

Compatible con: 4

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.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker