Compartir a través de


: HtmlMenuItemCollection.Add (Método) (Microsoft.SharePoint.Portal.WebControls)

Adds a menu item to a menu.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
Public Function Add ( _
    objItem As HtmlMenuItem _
) As Integer
'Uso
Dim instance As HtmlMenuItemCollection
Dim objItem As HtmlMenuItem
Dim returnValue As Integer

returnValue = instance.Add(objItem)
public int Add (
    HtmlMenuItem objItem
)

Parámetros

  • objItem
    Object that contains the menu item that is added to the menu.

Valor devuelto

A 32-bit signed integer that represents the index of the menu item added to the collection.

Vea también

Referencia

HtmlMenuItemCollection (Clase)
HtmlMenuItemCollection (Miembros)
Microsoft.SharePoint.Portal.WebControls (Espacio de nombres)