Share via


InvokeMethod.RunAsynchronously Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die Methode der Aktivität asynchron aufgerufen wird, oder legt ihn fest.

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

Im folgenden Codebeispiel wird das Festlegen der RunAsynchronously-Eigenschaft einer InvokeMethod-Aktivität veranschaulicht. Dieses Beispiel stammt aus dem Beispiel Using the InvokeMethod Activity (Verwenden der InvokeMethod-Aktivität ).

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

Gilt für: