Click or drag to resize

DataSession Class

X#
The DataSession class contains a list of workareas/cursors
Inheritance Hierarchy
Object
  Workareas
    DataSession

Namespace:  XSharp.RDD
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.24 GA
Syntax
 CLASS DataSession INHERIT Workareas
Request Example View Source

The DataSession type exposes the following members.

Constructors
  NameDescription
Public methodDataSession(String)
Construct a new datasession
Public methodDataSession(Long, String)
Construct a new datasession
Top
Properties
  NameDescription
Public propertyId
The unique id for the datasession
Public propertyName
The name for the datasession.
Public propertyStatic memberSessions
List of all open DataSessions
Top
Methods
  NameDescription
Public methodStatic memberAdd
Add a DataSession to the list of open datasessions
Public methodStatic memberClose
Remove a DataSession from the list of open datasessions
Top
Remarks
This class also manages the life time of all opened datasessions
When it detects that a datasession for a thread is no longer needed (because the thread has stopped) then it will close that datasession and all tables that are opened by it.
At application shutdown it will also close all opened datasessions including private datasessions that could be opened by forms or reports.
See Also