DesignSurface.BeginLoad 方法

定義

開始裝載過程。

多載

名稱 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

設計載入器用來載入設計師。

例外狀況

loadernull

備註

設計者載入可以是非同步的,因此在呼叫回傳後載入仍可能持續進行。 在事件上附加一個事件處理 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

設計模式下要創建的元件類型。

例外狀況

rootComponentTypenull

備註

rootComponentType 指定時,會使用預設的設計載入器,僅建立一個 的 rootComponentType 實例。 設計者載入可以是非同步的,因此在呼叫回傳後載入仍可能持續進行。 在事件上附加一個事件處理 LoadComplete 程序,以便在設計表面完成載入時收到通知。

呼叫 BeginLoad 後,你可以立即取得設計器的檢視,因為設計器載入器在非同步載入時必須至少提供根元件。

Note

BeginLoad 方法建立元件類型的實例,並初始化該實例的設計器。 Loaded事件會在此方法回歸前被觸發。

適用於