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.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.