Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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