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


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

ICommandItem.Name Property

The name of this command item.

[Visual Basic .NET]
Public Property Name As String
[C#]
public string Name {get; set;}

Product Availability

Available with ArcGIS Desktop.

Description

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.

Remarks

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.

See Also

ICommandItem Interface