This document is archived and information here might be outdated.  Recommended version.


ICommand.Name Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IC > ICommand Interface > ICommand.Name Property
ArcGIS Developer Help

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(
  System.String* 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