Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BasicDesignerLoader.OnEndLoad Method

Notifies the designer loader that loading is complete.

Namespace:  System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)
protected virtual void OnEndLoad(
	bool successful,
	ICollection errors


Type: System.Boolean

true if the load completed successfully; otherwise, false.

Type: System.Collections.ICollection

An ICollection containing objects (usually exceptions) that were reported as errors.


The IDesignerLoaderHost has not been initialized.


The IDesignerLoaderHost has been disposed.

The OnEndLoad method is invoked when loading is finished. It is always called, even if an exception is thrown during loading. The value of successful will be set to true if the load succeeded, or false if a fatal error occurred. The errors collection will contain objects that were reported as errors. Usually, these objects are exceptions.

If you implement IDesignerLoaderService to provide dependent load support, you should call the OnEndLoad method after the last call to the IDesignerLoaderService.DependentLoadComplete method. By default, BasicDesignerLoader implements IDesignerLoaderService and does this for you. If IDesignerLoaderService is not available when BeginLoad is called, BeginLoad will directly call OnEndLoad after calling PerformLoad.

This method should be called by the designer loader service when all dependent loads have been completed. This stops the loading process that was initiated by the BeginLoad method. If you provide your own loader service, or if you choose not to provide a loader service, you are responsible for calling this method. The BeginLoad method will automatically call this, either indirectly by calling the IDesignerLoaderService.DependentLoadComplete method if IDesignerLoaderService is available, or directly if it is not.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.