MenuItem Constructor (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 _
)
'Usage
Dim displayText As String
Dim clientEvent As String
Dim instance As New MenuItem(displayText, _
clientEvent)
public MenuItem(
string displayText,
string clientEvent
)
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.
Remarks
The MenuItem created is used for a client-side based menu item.