Back to Devexpress

CannotChangePropertyWhenSessionIsConnectedException Class

xpo-devexpress-dot-xpo-dot-exceptions-6eee14c3.md

latest1.7 KB
Original Source

CannotChangePropertyWhenSessionIsConnectedException Class

An exception that is thrown when the essential properties of the currently connected session are about to be modified.

Namespace : DevExpress.Xpo.Exceptions

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public class CannotChangePropertyWhenSessionIsConnectedException :
    Exception
vb
Public Class CannotChangePropertyWhenSessionIsConnectedException
    Inherits Exception

Remarks

Specific properties (for instance, Session.ConnectionString) can be modified only when a Session is not connected to a data store. If such a property is modified after the connection is established, a CannotChangePropertyWhenSessionIsConnectedException exception is raised.

Solution:

  • change a property before the session is connected to the data store.

Inheritance

Object Exception CannotChangePropertyWhenSessionIsConnectedException

See Also

CannotChangePropertyWhenSessionIsConnectedException Members

DevExpress.Xpo.Exceptions Namespace