.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

BaseObject.AfterConstruction() Method

Invoked when the current object is about to be initialized after its creation.

Namespace: DevExpress.Persistent.BaseImpl

Assembly: DevExpress.Persistent.BaseImpl.v21.1.dll


public override void AfterConstruction()


The BaseObject class overrides this method to initialize the BaseObject.Oid property, when the BaseObject.OidInitializationMode is set to OidInitializationMode.AfterConstruction.

This method is not intended to be called from your code. However, when deriving from the BaseObject class, you may need to override this method to initialize new objects with default property values. For additional information, refer to the How to: Initialize Business Objects with Default Property Values in XPO help topic.

See Also