WebPartManager.OnInit(EventArgs) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提升 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)
參數
例外狀況
頁面上還有另一個 WebPartManager 控制項
備註
該 OnInit 方法呼叫基礎方法,該方法會為 Init 控制項提出事件,然後執行多項準備步驟,例如確保頁面上只有一個控制項實例 WebPartManager ,以及載入個人化資料。