SessionPoolGetSession Method |
Get a session locked for use by caller.
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public SessionBase GetSession(
out int identifier
)
Public Function GetSession (
<OutAttribute> ByRef identifier As Integer
) As SessionBase
public:
SessionBase^ GetSession(
[OutAttribute] int% identifier
)
member GetSession :
identifier : int byref -> SessionBase
Parameters
- identifier
- Type: SystemInt32
The id of the returned session. Make sure you always call FreeSession with this id provided or else session is locked forever. One way is to call FreeSession in a finally block.
Return Value
Type:
SessionBaseA reserved/locked session
See Also