WebPartDisplayModeEventHandler WebPartDisplayModeEventHandler WebPartDisplayModeEventHandler WebPartDisplayModeEventHandler Delegate


Represents the method that will handle the DisplayModeChanged event of a WebPartManager object.

public delegate void WebPartDisplayModeEventHandler(System::Object ^ sender, WebPartDisplayModeEventArgs ^ e);
public delegate void WebPartDisplayModeEventHandler(object sender, WebPartDisplayModeEventArgs e);
type WebPartDisplayModeEventHandler = delegate of obj * WebPartDisplayModeEventArgs -> unit
Public Delegate Sub WebPartDisplayModeEventHandler(sender As Object, e As WebPartDisplayModeEventArgs)


Object Object Object Object

The source of the event.



The method specified in the WebPartDisplayModeEventHandler delegate will be called when a DisplayModeChanged event is raised.

Page developers can provide custom handlers for Web Part events by adding an OnDisplayModeChanged attribute to the <asp:webpartmanager> element in a page, and assigning a custom method name to the attribute. A custom handler can also be assigned programmatically. For more information about how to subscribe to an event, see How to: Raise and Consume Events.

Extension Methods

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to