नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Defines all the menus and toolbars that a VSPackage implements.
Syntax
<Menus>
<Menu>... </Menu>
<Menu>... </Menu>
</Menus>
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| Condition | Optional. See Conditional attributes. |
Child Elements
| Element | Description |
|---|---|
| Menus element | Defines all the menus and toolbars that a VSPackage implements. |
| Menu element | Represents a single menu or toolbar. |
Parent elements
| Element | Description |
|---|---|
| Commands element | Represents the collection of commands in the VSPackage. |
Example
<Commands package="guidMyPackage">
<Menus>
<Menu Condition="'%(DEBUG)' != 'true'"
guid="cmdSetGuidMyProductCommands" id="menuIDMainMenu"
priority="0x0000" type="Menu">
<Annotation>
<Documentation>this is an annotation</Documentation>
<AppInfo>
<CustomData>
<CustomSubElement>Some data</CustomSubElement>
</CustomData>
</AppInfo>
</Annotation>
<CommandFlag>AlwaysCreate</CommandFlag>
<Strings>
<ButtonText>MainMenu</ButtonText>
</Strings>
</Menu>
</Menus>
<Commands>