Share via


MenuItem.ClientEvent property

Gets or sets the client-side Microsoft JScript code to execute when this menu item is clicked.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property ClientEvent As String
    Get
    Set
'Usage
Dim instance As MenuItem
Dim value As String

value = instance.ClientEvent

instance.ClientEvent = value
public string ClientEvent { get; set; }

Property value

Type: System.String
A string which specifies the JScript code for the click event which needs to get sent to the client.

See also

Reference

MenuItem class

MenuItem members

Microsoft.SharePoint.WebPartPages namespace