In BBj 4.0 and higher, this method is deprecated;
use BBjSessionInfo::getSessionID.
Description
This method returns a unique identifier for the session described by
this BBjSessionInfo.
Syntax
Return Value | Method |
---|
int | getID() |
Parameters
None.
Return Value
This is the same value obtained by DEC (INFO(3,0)).
Example
api! = BBjAPI()
vector! = api!.getSessionInfos()
size = vector!.size()
if size > 0
info! = vector!.getItem(0)
?info!.getUser()
?info!.getUnresponsiveTime()
?info!.getIPAddress()
?info!.getConnectTime()
?info!.getProgramName()
?info!.getProgramLine()
?info!.isBackground()
?info!.getSessionID()
?info!.getTerminalID()
?info!
endif
for i = 0 to size-1
info! = vector!.get(i)
if info!.getProgramName() = "foo.bbj"
api!.killSession(info!, "admin", "admin123")
endif
next i
|
See Also
BBjAPI
BBjAPI::getSessionInfos
BBjSessionInfo
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.