Click or drag to resize

RuntimeState.SetDataSession Method

X#
This method can be used to switch the active DataSession in the runtime state.

Namespace:  XSharp
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 STATIC METHOD SetDataSession(
	session AS DataSession
) AS DataSession
Request Example View Source

Parameters

session
Type: DataSession
The datasession that needs to be set as the new active datasession

Return Value

Type: DataSession
The previous active datasession
Remarks
This sets the DataSession in the current thread.
See Also