InvokeMethod.MethodName Property
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.
The name of the method to be invoked when the activity executes.
public:
property System::String ^ MethodName { System::String ^ get(); void set(System::String ^ value); };
public string MethodName { get; set; }
member this.MethodName : string with get, set
Public Property MethodName As String
Property Value
The method name.
Examples
The following code sample demonstrates setting the MethodName property of 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")
}
},
Remarks
The invoked method must be declared as public.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.