Back to Devexpress

Session Constructors

xpo-devexpress-dot-xpo-dot-session-dot-ctor.md

latest2.8 KB
Original Source

Session Constructors

The session that is used to load and save persistent objects.

NameParametersDescription
Session()noneInitializes a new instance of the Session class with default settings.
Session(IDataLayer, IDisposable[])layer, disposeOnDisconnectInitializes a new instance of the Session class and connects it to a data store.
Session(IObjectLayer, IDisposable[])layer, disposeOnDisconnectInitializes a new instance of the Session class with specified settings and connects it to a data store.
Session(XPDictionary)dictionaryInitializes a new Session instance using the specified metadata provider.
Session(IContainer)containerInitializes a new instance of the Session class and adds it to a form’s container.
Session(IServiceProvider, IDataLayer, IDisposable[])serviceProvider, layer, disposeOnDisconnectInitializes a new instance of the Session class with specified settings.
Session(IServiceProvider, IObjectLayer, IDisposable[])serviceProvider, layer, disposeOnDisconnectInitializes a new instance of the Session class with specified settings.
Session(IServiceProvider, XPDictionary)serviceProvider, dictionaryInitializes a new instance of the Session class with specified settings.
Session(IServiceProvider, IContainer)serviceProvider, containerInitializes a new instance of the Session class with specified settings.
Session(IServiceProvider)serviceProviderInitializes a new instance of the Session class with specified settings.

See Also

Session Class

Session Members

DevExpress.Xpo Namespace