Share via


MethodTaskItem.MethodName Property

Definition

Gets the method name.

public:
 property System::String ^ MethodName { System::String ^ get(); };
public string MethodName { get; }
member this.MethodName : string
Public ReadOnly Property MethodName As String

Property Value

The method name.

Examples

The following example creates a MethodTaskItem object and sends the method name to the trace listener.

Person prs = new Person(66, "Joe", "Smith");
MethodTaskItem mti_i = new MethodTaskItem(
                                "InvTst",       // Method Name
                                "Invoke Test",   // Menu item Text
                                sDemoCat,       // Category
                                "Tool Tip:SC",  // ToolTip non-functional
                                imgAsk,          // Menu Icon
                                prs);      // user data
mti_i.CausesNavigation = false;
traceMTI(mti_i);

items.Add(mti_i);

Applies to