InstrSession.LockSession
- Updated2025-07-21
- 1 minute(s) read
InstrSession.LockSession
Syntax
InstrSession.LockSession( keyName, timeout, reserved)
Purpose
Locks the session with the case-insensitive key name you specify. If the session is locked with a different key name, the method waits until the session becomes available or returns an error when the timeout period expires.
Parameters
keyName As String
[In] Pass the key name with which to lock the session.
timeout As Double
[In] Pass the number of seconds to wait for the lock to become available before timing out. Pass a timeout value of -1.0 to wait indefinitely.
reserved As Long
[In] Pass a zero value to this reserved parameter.