Share via


ProxyWebPartManager.OnInit(EventArgs) 方法

定义

引发 Init 事件并初始化控件。

protected public:
 override void OnInit(EventArgs ^ e);
protected internal override void OnInit (EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Friend Overrides Sub OnInit (e As EventArgs)

参数

e
EventArgs

包含事件数据的 EventArgs

例外

关联母版页的 WebPartManager 控件为 null

注解

方法 OnInit 调用基方法,然后执行初始化控件的任务 ProxyWebPartManager 。 此方法的一项重要任务是将 属性引用 StaticConnections 的连接集合分配给 WebPartManager 控件的 WebPartManager.StaticConnections 集合。

适用于

另请参阅