共用方式為


IMenuItemCollection.Add Method (String)

[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 with the specified text.

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

Syntax

'Declaration
Function Add ( _
    text As String _
) As IMenuItem
IMenuItem Add(
    string text
)

Parameters

  • text
    Type: System.String

    The text for the menu item shown in the context menu.

Return Value

Type: Microsoft.VisualStudio.SharePoint.IMenuItem
An object representing the menu item added to the collection.

.NET Framework Security

See Also

Reference

IMenuItemCollection Interface

Add Overload

Microsoft.VisualStudio.SharePoint Namespace