IMenuItemCollection.Add Method (String)
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
- 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.