ITrkSession.CloseSession (method)

method CloseSession
Syntax: object.CloseSession SessionID
Parameters:
SessionID As String -
Description:
The CloseSession method will close a session by the given name.

Example:

Dim oTrkItemAgent As Object
Dim oTrkSession As Object
Dim oTrkItems As Object
Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
Set oTrkSession = CreateObject("Tracker.TrkSession")
oTrkSession.AddProject ProjectName, "ADMINISTRATOR", ""
oTrkSession.CloseSession "AGDB-EDRT"