InvokeMethod.RunAsynchronously Proprietà

Definizione

Ottiene o imposta un valore che indica se il metodo dell'attività viene richiamato in modo asincrono.

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

Valore della proprietà

true se il metodo viene eseguito in modo asincrono.

Esempio

Nell'esempio di codice seguente viene illustrata l'impostazione della proprietà RunAsynchronously di un'attività InvokeMethod . Questo esempio proviene dall'esempio Using the InvokeMethod Activity .This example is from the Using the InvokeMethod Activity sample.

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

Si applica a