WebPartDisplayModeCancelEventHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the method that handles the DisplayModeChanging event of the WebPartManager class.
public delegate void WebPartDisplayModeCancelEventHandler(System::Object ^ sender, WebPartDisplayModeCancelEventArgs ^ e);
public delegate void WebPartDisplayModeCancelEventHandler(object sender, WebPartDisplayModeCancelEventArgs e);
type WebPartDisplayModeCancelEventHandler = delegate of obj * WebPartDisplayModeCancelEventArgs -> unit
Public Delegate Sub WebPartDisplayModeCancelEventHandler(sender As Object, e As WebPartDisplayModeCancelEventArgs)
Parameters
- sender
- Object
The source of the event.
A WebPartDisplayModeCancelEventArgs that contains the event data.
Remarks
The method specified in the WebPartDisplayModeCancelEventHandler delegate is called when a DisplayModeChanging event is raised.
Page developers can provide custom handlers for Web Parts events by adding an OnDisplayModeChanging
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) |
Gets an object that represents the method represented by the specified delegate. |