语言

WebPartManager.ActivateConnections 方法

定义

使当前处于非活动状态的网页上的所有连接处于活动状态。

protected:
 virtual void ActivateConnections();
protected virtual void ActivateConnections();
abstract member ActivateConnections : unit -> unit
override this.ActivateConnections : unit -> unit
Protected Overridable Sub ActivateConnections ()

注解

对ActivateConnections页面的每个请求调用该方法,以激活驻留在WebPart区域中的其他服务器控件之间的WebPartZoneBase现有连接。 在某些情况下,例如,如果在激活的连接中存在冲突,此方法又调用 DisconnectWebPart 该方法以结束有问题的连接。 在断开连接过程中, WebPartsDisconnecting 将引发事件。 通常,开发人员可以取消此事件,但在这种情况下,这是无法取消的连接之间的冲突,因为 WebPartManager 控件需要解决冲突才能完成激活连接的过程。 有关详细信息,请参阅 WebPartsDisconnecting 事件。

适用于