共用方式為


CommandName element

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The CommandName element specifies the text that appears in the keyboard category in the Options dialog box, and in the Commands list in the Customize dialog box.

Syntax

<CommandName>MyCommand</CommandName>

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child elements

None.

Parent elements

Element Description
Strings element Groups text elements, such as ButtonText and CommandName.

See also