Skip to main content
.NET Framework 4.5.2+

BaseObject.AfterConstruction() Method

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

Namespace: DevExpress.Persistent.BaseImpl

Assembly: DevExpress.Persistent.BaseImpl.Xpo.v22.2.dll

Declaration

public override void AfterConstruction()

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AfterConstruction() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also