BasicDesignerLoader.BeginLoad(IDesignerLoaderHost) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始載入過程。
public:
override void BeginLoad(System::ComponentModel::Design::Serialization::IDesignerLoaderHost ^ host);
public override void BeginLoad(System.ComponentModel.Design.Serialization.IDesignerLoaderHost host);
override this.BeginLoad : System.ComponentModel.Design.Serialization.IDesignerLoaderHost -> unit
Public Overrides Sub BeginLoad (host As IDesignerLoaderHost)
參數
- host
- IDesignerLoaderHost
設計載入器主機要載入。
例外狀況
host 是 null。
設計師已經載入,或 BeginLoad(IDesignerLoaderHost) 是被呼叫到不同的設計載入主機。
host 已被處理掉。
備註
這是抽象 DesignerLoader.BeginLoad 方法的實作。 你不需要在自己的類別中覆蓋這個方法。 該 BeginLoad 方法執行以下動作:
它會驗證設計表面尚未載入。
在第一次呼叫時,它會加入相關服務並呼叫方法。Initialize
它呼叫 OnBeginLoad、 和 PerformLoadOnEndLoad 方法。
若設計載入器服務尚未從服務容器中移除, BeginLoad 則會呼叫 the IDesignerLoaderService.AddLoadDependency and IDesignerLoaderService.DependentLoadComplete 方法而非 OnBeginLoad and OnEndLoad 方法。 在這種情況下,設計載入服務有責任呼叫 OnBeginLoad 和 OnEndLoad。