InvokeMethod.RunAsynchronously Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob die Methode der Aktivität asynchron aufgerufen wird.

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

Eigenschaftswert

true wenn die Methode asynchron ausgeführt wird.

Beispiele

Das folgende Codebeispiel veranschaulicht das Festlegen der RunAsynchronly-Eigenschaft einer InvokeMethod Aktivität. Dieses Beispiel stammt aus dem Beispiel "InvokeMethod Activity ".

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

Gilt für: