DesignSurface.BeginLoad 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始裝載過程。
多載
| 名稱 | Description |
|---|---|
| BeginLoad(DesignerLoader) |
開始使用指定的設計裝載器進行裝載。 |
| BeginLoad(Type) |
開始裝載過程。 |
BeginLoad(DesignerLoader)
開始使用指定的設計裝載器進行裝載。
public:
void BeginLoad(System::ComponentModel::Design::Serialization::DesignerLoader ^ loader);
public void BeginLoad(System.ComponentModel.Design.Serialization.DesignerLoader loader);
member this.BeginLoad : System.ComponentModel.Design.Serialization.DesignerLoader -> unit
Public Sub BeginLoad (loader As DesignerLoader)
參數
- loader
- DesignerLoader
設計載入器用來載入設計師。
例外狀況
loader 是 null。
備註
設計者載入可以是非同步的,因此在呼叫回傳後載入仍可能持續進行。 在事件上附加一個事件處理 LoadComplete 程序,以便在設計表面完成載入時收到通知。
呼叫 BeginLoad 後,你可以立即取得設計器的檢視,因為設計器載入器在非同步載入時必須至少提供根元件。
另請參閱
適用於
BeginLoad(Type)
開始裝載過程。
public:
void BeginLoad(Type ^ rootComponentType);
public void BeginLoad(Type rootComponentType);
member this.BeginLoad : Type -> unit
Public Sub BeginLoad (rootComponentType As Type)
參數
- rootComponentType
- Type
設計模式下要創建的元件類型。
例外狀況
rootComponentType 是 null。
備註
當 rootComponentType 指定時,會使用預設的設計載入器,僅建立一個 的 rootComponentType 實例。 設計者載入可以是非同步的,因此在呼叫回傳後載入仍可能持續進行。 在事件上附加一個事件處理 LoadComplete 程序,以便在設計表面完成載入時收到通知。
呼叫 BeginLoad 後,你可以立即取得設計器的檢視,因為設計器載入器在非同步載入時必須至少提供根元件。