語言

InvokeMethod 建構函式

定義

建立一個新的類別實例 InvokeMethod 。

public:
 InvokeMethod();
public InvokeMethod();
Public Sub New ()

範例

以下程式碼範例示範建立一項 InvokeMethod 活動。 此範例來自 「使用 InvokeMethod 活動 」範例。

new InvokeMethod
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "InstanceMethod",
    Parameters =
    {
        new InArgument<string>("My favorite number is"),
        new InArgument<int>(42),
        new InArgument<string>("first item of the param array"),
        new InArgument<string>("second item of the param array"),
        new InArgument<string>("third item of the param array")
    }
},

適用於