WebPartCancelEventHandler Delegate
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 will handle the SelectedWebPartChanging event, WebPartClosing event, or WebPartDeleting event of the WebPartManager class.
public delegate void WebPartCancelEventHandler(System::Object ^ sender, WebPartCancelEventArgs ^ e);
public delegate void WebPartCancelEventHandler(object sender, WebPartCancelEventArgs e);
type WebPartCancelEventHandler = delegate of obj * WebPartCancelEventArgs -> unit
Public Delegate Sub WebPartCancelEventHandler(sender As Object, e As WebPartCancelEventArgs)
- sender
- Object
The source of the event.
A WebPartCancelEventArgs that contains the event data.
The method specified in the WebPartCancelEventHandler delegate is called when a SelectedWebPartChanging event, WebPartClosing event, or WebPartDeleting event is raised.
Page developers can provide custom handlers for Web Parts events by adding an OnSelectedWebPartChanging
attribute, OnWebPartClosing
attribute, or OnWebPartDeleting
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.
Get |
Gets an object that represents the method represented by the specified delegate. |
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: