HtmlSelect.OnInit(EventArgs) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提升Init事件以控制。HtmlSelect
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 方法通知控制項 HtmlSelect 執行建立及設定實例所需的初始化步驟。 若性質 IsViewStateEnabled 為 falseIsPostBack 且 為 true,則 RequiresDataBinding 性質設為 true。
給繼承者的注意事項
在覆蓋 OnInit(EventArgs) 衍生類別的方法時,務必呼叫基底類別的方法 OnInit(EventArgs) ,讓註冊的代理接收事件。