InvokeMethod.RunAsynchronously 屬性

定義

取得或設定一個值,指示活動的方法是否以非同步方式被呼叫。

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

屬性值

true 如果該方法是非同步執行的。

範例

以下程式碼範例示範如何設定活動的 InvokeMethod RunAsynously 屬性。 此範例來自 「使用 InvokeMethod 活動 」範例。

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

適用於