WebPartManager.OnWebPartsDisconnecting(WebPartConnectionsCancelEventArgs) 方法

定义

引发 WebPartsDisconnecting 事件,该事件指示 WebPart 区域中的两个 WebPartZoneBase 或服务器控件或用户控件正处于结束连接的过程中。Raises the WebPartsDisconnecting event, which indicates that two WebPart or server or user controls in a WebPartZoneBase zone are in the process of ending a connection.

protected:
 virtual void OnWebPartsDisconnecting(System::Web::UI::WebControls::WebParts::WebPartConnectionsCancelEventArgs ^ e);
protected virtual void OnWebPartsDisconnecting (System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventArgs e);
abstract member OnWebPartsDisconnecting : System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventArgs -> unit
override this.OnWebPartsDisconnecting : System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventArgs -> unit
Protected Overridable Sub OnWebPartsDisconnecting (e As WebPartConnectionsCancelEventArgs)

参数

注解

OnWebPartsDisconnecting 方法WebPartsDisconnecting引发事件,该事件在两个控件结束连接时发生。The OnWebPartsDisconnecting method raises the WebPartsDisconnecting event, which occurs when two controls are ending a connection. 方法提供了取消断开连接过程的机会。The method provides the opportunity to cancel the disconnection process. 如果成功删除连接,则将WebPartsDisconnected出现以下事件。If the connection is successfully removed, the WebPartsDisconnected event follows.

页面开发人员可以为关联的事件提供自定义处理程序, OnWebPartsDisconnecting方法是将<asp:webpartmanager>属性添加到网页上的元素,然后将自定义方法名称分配给该属性。Page developers can provide a custom handler for the associated event by adding the OnWebPartsDisconnecting attribute to the <asp:webpartmanager> element on a Web page, and then assigning a custom method name to the attribute.

继承者说明

创建派生WebPartManager类的OnWebPartsDisconnecting(WebPartConnectionsCancelEventArgs)开发人员可以重写方法以自定义事件处理。Developers who create derived WebPartManager classes can override the OnWebPartsDisconnecting(WebPartConnectionsCancelEventArgs) method to customize the event handling.

适用于

另请参阅