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

Guard.CheckObjectFromObjectSpace(IObjectSpace, Object) Method

Ensures that a specific object belongs to a particular Object Space.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public static void CheckObjectFromObjectSpace(
    IObjectSpace objectSpace,
    object obj
)

#Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object representing the Object Space against which the specified object is checked.

obj Object

An object to check.

#Remarks

If the specified object does not belong to the specified Object Space, an exception is thrown.

See Also