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


ICommandItem.Name Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

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