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.String

    Text to display for this menu item.

  • clientEvent
    Type: System.String

    The client event script to run when this menu item is clicked.

Remarks

The MenuItem created is used for a client-side based menu item.

See Also

Reference

MenuItem Class

MenuItem Members

MenuItem Overload

Microsoft.SharePoint.WebPartPages Namespace