Skip to main content
.NET 8.0+

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

BaseObjectSpace.Dispose() Method

In This Article

Releases all resources used by an BaseObjectSpace object.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public virtual void Dispose()

#Remarks

The Dispose method releases all resources allocated by the current BaseObjectSpace, and speeds up system performance. Usually, you do not need to use this method, because Object Spaces are disposed of together with disposing of the container Views. Use Dispose only if you manually create an Object Space via the XafApplication.CreateObjectSpace method and do not assign it to any View.

Override this method in the BaseObjectSpace class’ descendants to dispose their allocated resources.

See Also