Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates and adds a new menu item instance with the specified text and sort order.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function Add ( _
text As String, _
sortOrder As Integer _
) As IMenuItem
IMenuItem Add(
string text,
int sortOrder
)
Parameters
text
Type: StringThe text for the menu item displayed in the context menu.
sortOrder
Type: Int32A number specifying sort order of the menu item. Default value is 0. To insert the item before the default sort order, specify a negative number. To insert the item after the default sort order, specify a positive number.
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.