InvokeMethod.RunAsynchronously Propiedad

Definición

Obtiene o establece un valor que indica si el método de la actividad se invoca de forma asincrónica.

public:
 property bool RunAsynchronously { bool get(); void set(bool value); };
public bool RunAsynchronously { get; set; }
member this.RunAsynchronously : bool with get, set
Public Property RunAsynchronously As Boolean

Valor de propiedad

true si el método se ejecuta de forma asincrónica.

Ejemplos

En el ejemplo de código siguiente se muestra cómo establecer la propiedad RunAsynchronously de una InvokeMethod actividad. Este ejemplo procede del ejemplo Using the InvokeMethod Activity (Usar la actividad InvokeMethod ).

new InvokeMethod
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "AsyncMethodSample",
    RunAsynchronously = true,
    Parameters =
    {
        new InArgument<string>("Hello async"),
    }
},

Se aplica a