Partager via


HtmlMenuItemCollection.Add, méthode (Microsoft.SharePoint.Portal.WebControls)

Adds a menu item to a menu.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Public Function Add ( _
    objItem As HtmlMenuItem _
) As Integer
'Utilisation
Dim instance As HtmlMenuItemCollection
Dim objItem As HtmlMenuItem
Dim returnValue As Integer

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

Paramètres

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

Valeur de retour

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

Voir aussi

Référence

HtmlMenuItemCollection, classe
Membres HtmlMenuItemCollection
Microsoft.SharePoint.Portal.WebControls, espace de noms