InvokeMethod Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the InvokeMethod class.
public:
InvokeMethod();
public InvokeMethod ();
Public Sub New ()
Examples
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")
}
},
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.