- successful
- true if the load completed successfully; otherwise, false.
- errors
- An ICollection containing objects (usually exceptions) that were reported as errors.
The BasicDesignerLoader.OnEndLoad(bool, ICollection) 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 System.ComponentModel.Design.Serialization.IDesignerLoaderService to provide dependent load support, you should call the BasicDesignerLoader.OnEndLoad(bool, ICollection) method after the last call to the BasicDesignerLoader.System#ComponentModel#Design#Serialization#IDesignerLoaderService#DependentLoadComplete(bool, ICollection) method. By default, System.ComponentModel.Design.Serialization.BasicDesignerLoader implements System.ComponentModel.Design.Serialization.IDesignerLoaderService and does this for you. If System.ComponentModel.Design.Serialization.IDesignerLoaderService is not available when BasicDesignerLoader.BeginLoad(IDesignerLoaderHost) is called, BasicDesignerLoader.BeginLoad(IDesignerLoaderHost) will directly call BasicDesignerLoader.OnEndLoad(bool, ICollection) after calling BasicDesignerLoader.PerformLoad(IDesignerSerializationManager).
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 BasicDesignerLoader.BeginLoad(IDesignerLoaderHost) 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 BasicDesignerLoader.BeginLoad(IDesignerLoaderHost) method will automatically call this, either indirectly by calling the BasicDesignerLoader.System#ComponentModel#Design#Serialization#IDesignerLoaderService#DependentLoadComplete(bool, ICollection) method if System.ComponentModel.Design.Serialization.IDesignerLoaderService is available, or directly if it is not.