共用方式為


IMenuItemCollection.Add Method

Include Protected Members
Include Inherited Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates and adds a new menu item instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Add(String) Creates and adds a new menu item instance with the specified text.
Public method Add(String, Int32) Creates and adds a new menu item instance with the specified text and sort order.

Top

See Also

Reference

IMenuItemCollection Interface

Microsoft.VisualStudio.SharePoint Namespace