DesignSurface::BeginLoad Method (DesignerLoader^)

 

Begins the loading process with the given designer loader.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public:
void BeginLoad(
	DesignerLoader^ loader
)

Parameters

loader
Type: System.ComponentModel.Design.Serialization::DesignerLoader^

The designer loader to use for loading the designer.

Exception Condition
ArgumentNullException

loader is null.

ObjectDisposedException

The IDesignerHost attached to the DesignSurface has been disposed.

Designer loading can be asynchronous, so the loading may continue to progress after this call has returned. Attach an event handler to the LoadComplete event to be notified when the design surface has completed loading.

After BeginLoad is called, you can immediately obtain the view for the designer, because designer loaders must provide at least the root component when loading asynchronously.

.NET Framework
Available since 2.0
Return to top
Show: