InvokeMethod.MethodName Propriété

Définition

Nom de la méthode à appeler lorsque l'activité s'exécute.

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

Valeur de propriété

Nom de la méthode.

Exemples

L'exemple de code suivant montre comment définir la propriété MethodName d'une activité InvokeMethod. Cet exemple provient de l’exemple Using the 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")
    }
},

Remarques

La méthode appelée doit être déclarée comme publique.

S’applique à