Udostępnij za pośrednictwem


InvokeMethod Konstruktor

Definicja

Tworzy nowe wystąpienie klasy InvokeMethod.

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

Przykłady

Poniższy przykładowy kod pokazuje tworzenie InvokeMethod działania. Ten przykład pochodzi z przykładu Using the InvokeMethod Activity (Używanie przykładu 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")
    }
},

Dotyczy