MenuItem Constructor (String, String, String)
Initializes a new instance of the MenuItem class.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
displayText As String, _
clientEvent As String, _
menuID As String _
)
'Usage
Dim displayText As String
Dim clientEvent As String
Dim menuID As String
Dim instance As New MenuItem(displayText, _
clientEvent, menuID)
public MenuItem(
string displayText,
string clientEvent,
string menuID
)
Parameters
displayText
Type: System.StringText to display for this menu item.
clientEvent
Type: System.StringThe client event script to run when this menu item is clicked.
menuID
Type: System.StringThe menu ID to assign to this menu item.
Remarks
The MenuItem created is used for a client-side based menu item with an associated ID.