Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

Part Number B14308-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

OSessionCollection

The OSessionCollection object is the set of sessions that exists for a given client. You can get OSessionCollection objects from an OClient object using the GetSessions method. OSessionCollection is a subclass of OOracleCollection.

The OSessionCollection is dynamic: it always reflects the current set of sessions of the client it came from, even if the sessions are added after you get the collection. It is read-only. You cannot add sessions through the collection.

You can obtain individual OSessions from an OSessionCollection using the GetSession method.

The OSessionCollection class supports the following methods:

Construction and destruction:

OSessionCollection

~OSessionCollection

operator=

Attributes:

operator==

operator!=

GetCount

IsOpen

Operations:

Close

GetSession

Error Handling:

ErrorNumber

ErrorReset

GetErrorText

LookupErrorText