Skip to main content
.NET 6.0+

Guard.CheckObjectFromObjectSpace(IObjectSpace, Object) Method

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

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v23.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