Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InvokeMethod Constructor
Collapse the table of content
Expand the table of content

InvokeMethod Constructor

.NET Framework 4.6 and 4.5

Creates a new instance of the InvokeMethod class.

Namespace:  System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

public InvokeMethod()

The following code sample demonstrates creating an InvokeMethod activity. This example is from the Using the InvokeMethod Activity sample.

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft