NewMenu.AddMenuItem Method (String, String, String, String, String, String)

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Function AddMenuItem ( _
    id As String, _
    displayName As String, _
    imageUrl As String, _
    description As String, _
    navigateUrl As String, _
    onClickScript As String _
) As MenuItemTemplate
'Usage
Dim instance As NewMenu
Dim id As String
Dim displayName As String
Dim imageUrl As String
Dim description As String
Dim navigateUrl As String
Dim onClickScript As String
Dim returnValue As MenuItemTemplate

returnValue = instance.AddMenuItem(id, _
    displayName, imageUrl, description, _
    navigateUrl, onClickScript)
public override MenuItemTemplate AddMenuItem(
    string id,
    string displayName,
    string imageUrl,
    string description,
    string navigateUrl,
    string onClickScript
)

Parameters

Return Value

Type: Microsoft.SharePoint.WebControls.MenuItemTemplate

See Also

Reference

NewMenu Class

NewMenu Members

AddMenuItem Overload

Microsoft.SharePoint.WebControls Namespace