Compartir a través de


IMenuItemCollection Interface

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

Represents a collection of menu items that are added dynamically in the ProjectItemMenuItemsRequested event handler.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface IMenuItemCollection _
    Inherits IEnumerable(Of IMenuItem), IEnumerable
public interface IMenuItemCollection : IEnumerable<IMenuItem>, 
    IEnumerable

The IMenuItemCollection type exposes the following members.

Methods

  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.
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IMenuItem>.)

Top

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace