Επεξεργασία

Κοινή χρήση μέσω


MetaTable.Initialize Method

Definition

Initializes data that may not be available when the constructor is called.

protected public:
 virtual void Initialize();
protected internal virtual void Initialize ();
abstract member Initialize : unit -> unit
override this.Initialize : unit -> unit
Protected Friend Overridable Sub Initialize ()

Examples

The following example shows how to override the Initialize method in order to customize the initialization process.

protected  override void Initialize() {  
    base.Initialize();  
    MyOverriddenInit();  
}  
Protected Overloads Overrides Sub Initialize()   
    MyBase.Initialize()   
    MyOverriddenInit()   
End Sub  

Remarks

This method calls the Initialize method for each column in the MetaTable instance. This method cannot be called directly. To customize initialization, you can derive from this class and override the Initialize method. If you override this method, call the base control's Initialize method.

Applies to