InvokeMethod 构造函数

定义

创建类的新实例 InvokeMethod

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

示例

以下代码示例演示如何创建 InvokeMethod 活动。 此示例来自 Using the InvokeMethod Activity 示例。

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")
    }
},

适用于