StartSession(Int32,Int32) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The StartSession() method starts a session of the client type of the session object. The method checks that a license of that type is available and, if so, uses it for the session.
This overload of the method returns the session ID and the number of days until the MES license expires.
'Declaration
Overloads Sub StartSession( _
ByRef sessionId As Integer, _
ByRef daysToExpire As Integer _
)
'Usage
Dim instance As ISessionManager
Dim sessionId As Integer
Dim daysToExpire As Integer
instance.StartSession(sessionId, daysToExpire)
void StartSession(
out int sessionId,
out int daysToExpire
)
Parameters
- sessionId
Output. Holds the session ID and thus the user who is making this method call.
- daysToExpire
Output. Holds the number of days until the MES license expires.