Back to Devexpress

ResolveSessionEventArgs.Session Property

xpo-devexpress-dot-xpo-dot-resolvesessioneventargs.md

latest5.2 KB
Original Source

ResolveSessionEventArgs.Session Property

Specifies the session to be used to load and save persistent objects.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public ISessionProvider Session { get; set; }
vb
Public Property Session As ISessionProvider

Property Value

TypeDescription
ISessionProvider

An object that implements ISessionProvider.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Session property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-implement-crud-operations-xpinstantfeedbacksource/CS/DXServermode2/Form1.cs#L59

csharp
{
    IDisposable session1 = e.Session as IDisposable;
    if (session1 != null)

XPO_how-to-bind-data-to-winforms-controls-using-xpservermodeview-or-xpinstantfeedbackview/CS/XPServerModeViewDemo/Form1.cs#L20

csharp
xpServerModeView1.ResolveSession += (s, e) => {
    e.Session = session;
};

how-to-bind-wpf-grid-to-data/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L22

csharp
source.ResolveSession += (o, e) => {
    e.Session = new Session();
};

wpf-data-grid-implement-crud-operations/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L25

csharp
source.ResolveSession += (o, e) => {
    e.Session = new Session();
};

winforms-reporting-create-report-bound-to-xpobjectsource/CS/Form1.cs#L88

csharp
//Create new session based on the instance of DataLayer
    e.Session = new UnitOfWork(DataLayerInstance);
}

winforms-grid-implement-crud-operations-xpinstantfeedbacksource/VB/DXServermode2/Form1.vb#L52

vb
Private Sub xpInstantFeedbackSource1_DismissSession(ByVal sender As Object, ByVal e As ResolveSessionEventArgs)
    Dim session1 As IDisposable = TryCast(e.Session, IDisposable)
    If session1 IsNot Nothing Then

XPO_how-to-bind-data-to-winforms-controls-using-xpservermodeview-or-xpinstantfeedbackview/VB/XPServerModeViewDemo/Form1.vb#L22

vb
AddHandler xpServerModeView1.ResolveSession, Sub(s, e)
    e.Session = session
End Sub

how-to-bind-wpf-grid-to-data/VB/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.vb#L18

vb
Dim source = New XPInstantFeedbackView(GetType(Issue), properties, Nothing)
AddHandler source.ResolveSession, Sub(o, e) e.Session = New Session()
grid.ItemsSource = source

winforms-reporting-create-report-bound-to-xpobjectsource/VB/Form1.vb#L87

vb
'Create new session based on the instance of DataLayer
    e.Session = New UnitOfWork(DataLayerInstance)
End Sub

See Also

ResolveSessionEventArgs Class

ResolveSessionEventArgs Members

DevExpress.Xpo Namespace