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

IObjectSpace.IsDisposed Property

Gets a value indicating whether an Object Space has been disposed of.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

bool IsDisposed { get; }

#Property Value

Type Description
Boolean

true, if the current Object Space has been disposed of; otherwise, false.

#Remarks

If you implement the IObjectSpace interface in the BaseObjectSpace class’ descendant, the IsDisposed property is already implemented (see BaseObjectSpace.IsDisposed). However, you should override the BaseObjectSpace.Dispose method to set the IsDisposed property to true and release the resources allocated by the current Object Space. For instance, the container for in-memory objects (XPObjectSpace.Session in the case of an XPObjectSpace or EFCoreObjectSpace.DbContext in the case of the EFCoreObjectSpace), Types Info and Type Info Source must be disposed of.

See Also