InvokeMethod.RunAsynchronously 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示活動的方法是否以非同步方式被呼叫。
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"),
}
},