This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Name Property (ArcObjects .NET 10.5 SDK) |
The name of this command item.
[Visual Basic .NET] Public Property Name As String
[C#] public string Name {get; set;}
Returns the programmatic identifying name string for the command on which this command item is based. Note, this is usually different from the Caption property of a the command.
You can modify Name for VBA macro items but not built-in commands and UIControls. Setting this property for a built-in command or UIControls will return "This method cannot be called on built in commands" run-time error.