Rediger

Del via


BasicDesignerLoader.OnBeginLoad Method

Definition

Notifies the designer loader that loading is about to begin.

protected:
 virtual void OnBeginLoad();
protected virtual void OnBeginLoad ();
abstract member OnBeginLoad : unit -> unit
override this.OnBeginLoad : unit -> unit
Protected Overridable Sub OnBeginLoad ()

Remarks

The OnBeginLoad method is invoked to start the loading process. You should perform any necessary initialization for loading at this time. This method should not be used to perform the actual load. The default implementation disables change notifications and sets up the BasicDesignerLoader for loading.

If you implement IDesignerLoaderService to provide dependent load support, you should call OnBeginLoad when the first dependent load occurs. 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 OnBeginLoad.

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 IDesignerLoaderService.AddLoadDependency if IDesignerLoaderService is available, or directly if it is not.

Applies to