FrameworkContentElement.BeginInit Method

Definition

Called before an element is initialized.

public:
 virtual void BeginInit();
public virtual void BeginInit ();
abstract member BeginInit : unit -> unit
override this.BeginInit : unit -> unit
Public Overridable Sub BeginInit ()

Implements

Notes to Inheritors

Override this method to provide special handling that should occur before your element is initialized during the element loading process.

Your implementation should call the base implementation, because the base (default) implementation sets some internal flags to keep track of initialization.

The base implementation will throw an exception if BeginInit() is called more than one time on the same element prior to reaching EndInit().

Applies to