BaseDataBoundControl.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 物件。

備註

方法 OnInit 會先呼叫基類 OnInit 方法,然後呼叫 OnPagePreLoad 方法來處理 Page.PreLoad 事件。 此外,如果頁面的 HTTP 要求是回傳且檢視狀態已啟用,則 OnInit 方法會將 RequiresDataBinding 屬性設定為 true

適用於

另請參閱