WebPartConnectionsCancelEventArgs 类

定义

提供有关 WebPartsConnectingWebPartsDisconnecting 事件的数据。Provides data for the WebPartsConnecting and WebPartsDisconnecting events.

public ref class WebPartConnectionsCancelEventArgs : System::ComponentModel::CancelEventArgs
public class WebPartConnectionsCancelEventArgs : System.ComponentModel.CancelEventArgs
type WebPartConnectionsCancelEventArgs = class
    inherit CancelEventArgs
Public Class WebPartConnectionsCancelEventArgs
Inherits CancelEventArgs
继承
WebPartConnectionsCancelEventArgs

注解

WebPartsConnecting事件OnWebPartsConnecting由方法引发, 它指示连接过程已开始 (例如, 用户已选择控件并单击了连接谓词), 但尚未完成。The WebPartsConnecting event is raised by the OnWebPartsConnecting method, and it indicates that the connection process has begun (for example, a user has selected a control and clicked a connect verb), but is not yet completed. 事件提供了在连接完成前取消连接的机会。The event provides an opportunity to cancel a connection before it is complete. 如果连接成功完成, 则此事件后跟WebPartsConnected事件。If the connection is successfully completed, this event is followed by the WebPartsConnected event.

此事件由方法引发, 它指示用户已单击断开连接谓词, 或已调用此DisconnectWebParts方法。 OnWebPartsDisconnecting WebPartsDisconnectingThe WebPartsDisconnecting event is raised by the OnWebPartsDisconnecting method, and it indicates that a user has clicked a disconnect verb, or the DisconnectWebParts method has otherwise been called. 事件提供了一种方法, 可在连接完成前取消结束连接的过程。The event provides an opportunity to cancel the process of ending a connection before it is complete. 如果连接成功结束, 则此事件后跟WebPartsDisconnected事件。If the connection is ended successfully, this event is followed by the WebPartsDisconnected event.

类包含有关和WebPartsConnecting WebPartsDisconnecting事件的信息。 WebPartConnectionsCancelEventArgsThe WebPartConnectionsCancelEventArgs class contains information about the WebPartsConnecting and WebPartsDisconnecting events. 它提供对正在连接或已断开连接 Web 部件控件的访问。It provides access to the Web Parts controls that are being connected or disconnected.

构造函数

WebPartConnectionsCancelEventArgs(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint)

初始化 WebPartConnectionsCancelEventArgs 类的新实例,而不指定连接。Initializes a new instance of the WebPartConnectionsCancelEventArgs class without a specified connection.

WebPartConnectionsCancelEventArgs(WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartConnection)

用指定的连接初始化 WebPartConnectionsCancelEventArgs 类的新实例。Initializes a new instance of the WebPartConnectionsCancelEventArgs class with the specified connection.

属性

Cancel

获取或设置指示是否应取消事件的值。Gets or sets a value indicating whether the event should be canceled.

(继承自 CancelEventArgs)
Connection

获取事件涉及的 Web 部件连接。Gets the Web Parts connection involved in the event.

Consumer

获取在连接中充当使用者的 Web 部件控件。Gets the Web Parts control acting as the consumer in the connection.

ConsumerConnectionPoint

获取在 Web 部件连接中使用数据的连接点。Gets the connection point that consumes data in the Web Parts connection.

Provider

获取在连接中充当提供者的 Web 部件控件。Gets the Web Parts control acting as the provider in the connection.

ProviderConnectionPoint

获取在 Web 部件连接中提供数据的连接点。Gets the connection point that provides data in the Web Parts connection.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于