WebPartCancelEventArgs WebPartCancelEventArgs WebPartCancelEventArgs 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
WebPartCancelEventArgsWebPartCancelEventArgsWebPartCancelEventArgsWebPartCancelEventArgs
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) WebPartCancelEventArgs(WebPart) WebPartCancelEventArgs(WebPart) WebPartCancelEventArgs(WebPart)

Initializes a new instance of the WebPartCancelEventArgs class.

Properties

Cancel Cancel Cancel Cancel

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

(Inherited from CancelEventArgs)
WebPart WebPart WebPart WebPart

Gets the Web Parts control involved in the cancelable event.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to