ArcObjects Library Reference (SystemUI)  

ICommand.Name Property

The name of this commmand.

[Visual Basic .NET]
Public ReadOnly Property Name As String
[C#]
public string Name {get;}
[C++]
HRESULT get_Name(
  BSTR* Name
);
[C++]

Parameters

Name [out, retval]   Name is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The Name property of a command is a programmatic identifying name string. By convention, a command's name should include its category name. The format of the Name string should be <Category>_<Caption>. For example, the name of the builtin ArcMap command About ArcMap is "Help_About". Since it is an identifier of the command, the Name property should not be localized.

When implementing ICommand to create a custom command, use the Name property to set the internal name of this command.

Note, the Caption property of a command is the string that appears when the command is placed on a command bar. 

See Also

ICommand Interface

.NET Samples

Share a command pool between ToolbarControls (Code Files: ShareCommandPool) |