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 控制項註冊區域。

適用於

另請參閱