BaseDataBoundControl.OnInit(EventArgs) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
負責這個 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)
參數
備註
該 OnInit 方法首先呼叫基底類別 OnInit 方法,然後再呼叫 OnPagePreLoad 處理 Page.PreLoad 事件的方法。 此外,若 HTTP 請求為後回發且已啟用檢視狀態, OnInit 該方法將屬性設定 RequiresDataBinding 為 true。