This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IC > ICommand Interface > ICommand.Name Property (ArcObjects .NET 10.5 SDK) |
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
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.