XPObjectSpace(ITypesInfo, XpoTypeInfoSource, UInt16, UnitOfWork) Constructor

Creates a new instance of the XPObjectSpace class.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v18.2.dll


public XPObjectSpace(
    ITypesInfo typesInfo,
    XpoTypeInfoSource xpoTypeInfoSource,
    ushort hostParametersMaxNumber,
    UnitOfWork session
Public Sub New(
    typesInfo As ITypesInfo,
    xpoTypeInfoSource As XpoTypeInfoSource,
    hostParametersMaxNumber As UShort,
    session As UnitOfWork


Type Name Description
ITypesInfo typesInfo

An ITypesInfo object providing access to XAF-related information on business classes.

DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource xpoTypeInfoSource

An XpoTypeInfoSource object that is a source of XPO-related information on business classes.

UInt16 hostParametersMaxNumber

A UInt16 value that specifies the maximum number of hosted parameters.

UnitOfWork session

A UnitOfWork object which is used by the current Object Space to load and save persistent objects.


When you need to create an Object Space (for example, to create a View), do not create it manually. Instead, use the XafApplication.CreateObjectSpace method.

See Also