Bewerken

Share via


WebPartCancelEventArgs Class

Definition

Provides data for the SelectedWebPartChanging event, WebPartClosing event, and WebPartDeleting event.

public ref class WebPartCancelEventArgs : System::ComponentModel::CancelEventArgs
public class WebPartCancelEventArgs : System.ComponentModel.CancelEventArgs
type WebPartCancelEventArgs = class
    inherit CancelEventArgs
Public Class WebPartCancelEventArgs
Inherits CancelEventArgs
Inheritance
WebPartCancelEventArgs
Derived

Remarks

The WebPartCancelEventArgs class contains information for several different Web Parts events that can be canceled. These events include the SelectedWebPartChanging, WebPartClosing, and WebPartDeleting events. The WebPartCancelEventArgs class provides access to the Web Parts control involved in the event. The Web Parts control is accessed through the WebPart property.

Constructors

WebPartCancelEventArgs(WebPart)

Initializes a new instance of the WebPartCancelEventArgs class.

Properties

Cancel

Gets or sets a value indicating whether the event should be canceled.

(Inherited from CancelEventArgs)
WebPart

Gets the Web Parts control involved in the cancelable event.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to