Partilhar via


InvokeMethod Construtor

Definição

Cria uma nova instância da classe InvokeMethod.

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

Exemplos

O exemplo de código a seguir demonstra como criar uma InvokeMethod atividade. Este exemplo é do exemplo Usando a atividade 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")
    }
},

Aplica-se a