Share via


MenuItem.OnClick Property

Gets or sets the server-side function to execute for server-side menu items.

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

Syntax

'Declaration
Public Property OnClick As EventHandler
    Get
    Set
'Usage
Dim instance As MenuItem
Dim value As EventHandler

value = instance.OnClick

instance.OnClick = value
public EventHandler OnClick { get; set; }

Property Value

Type: System.EventHandler
Specifies the System.EventHandler when a menu item is clicked.

See Also

Reference

MenuItem Class

MenuItem Members

Microsoft.SharePoint.WebPartPages Namespace