語言

WebZone.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 包含事件資料的 。

例外狀況

區域控制是在頁面生命週期的後期加入的,也就是 WebPartManagernull。

備註

此 OnInit 方法會覆寫基礎 OnInit 方法,將區域註冊到控制區 WebPartManager 。

適用於

另請參閱