WebZone.OnInit(EventArgs) 方法

定义

引发 Init 事件。Raises the Init event.

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

包含事件数据的 EventArgsAn EventArgs that contains the event data.

例外

添加该区域控件的时间对页的生命周期来说太晚,或 WebPartManagernullThe zone control was added at too late of a stage in the page life cycle, or the WebPartManager is null.

注解

OnInit 方法将重写基 OnInit 方法以使用 WebPartManager 控件注册区域。The OnInit method overrides the base OnInit method to register a zone with the WebPartManager control.

适用于

另请参阅