BasicDesignerLoader.BeginLoad(IDesignerLoaderHost) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts the loading process.
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)
Parameters
- host
- IDesignerLoaderHost
The designer loader host to load.
Exceptions
host
is null
.
The designer is already loaded, or BeginLoad(IDesignerLoaderHost) has been called with a different designer loader host.
host
has been disposed.
Remarks
This is an implementation of the abstract DesignerLoader.BeginLoad method. You do not need to override this method in your own class. The BeginLoad method performs the following actions:
It verifies that the design surface has not already loaded.
On the first call, it adds relevant services and calls the Initialize method.
It calls the OnBeginLoad, PerformLoad, and OnEndLoad methods.
If the designer loader service has not been removed from the service container, BeginLoad will call the IDesignerLoaderService.AddLoadDependency and IDesignerLoaderService.DependentLoadComplete methods instead of the OnBeginLoad and OnEndLoad methods. In this situation, it is the responsibility of the designer loader service to call OnBeginLoad and OnEndLoad.