語言

WebPartManager.OnInit(EventArgs) 方法

定義

提升 Init 事件,這是控制生命週期中的 WebPartManager 第一個事件。

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 控制項

備註

該 OnInit 方法呼叫基礎方法,該方法會為 Init 控制項提出事件,然後執行多項準備步驟,例如確保頁面上只有一個控制項實例 WebPartManager ,以及載入個人化資料。

適用於

另請參閱