09-30-2005 04:38 AM
09-30-2005 02:29 PM
GetNames returns the names of all the sessions the session manager knows how to create (whether or not they are already created in memory). Since the session manager doesn't know the names of custom sessions you might potentially want to create, GetNames never returns custom session names.
To get the names of custom sessions you have already created, you can call GetSessions and access the name property of each session.
Note that you should probably be passing false to newSession parameter of GetInstrSession. Otherwise, if you pass true, you get a new distinct session object whether or not a session object already exists with the name you specify. In addition, the new session object will have its name altered to reflect it's uniqueness, even if a session with the specified name did not previously exist.
10-04-2005 02:54 AM