Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 1 (10.1)

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

OSessionCollection Method

Applies To

OSessionCollection

Description

OSessionCollection constructor

Usage

OSessionCollection(void)

OSessionCollection(const OSessionCollection &othercoll)

Arguments

othercoll
Another OSessionCollection object that you are copying.
Remarks

These methods construct a new OSessionCollection instance.

Constructing an OSessionCollection does not create any sessions or OSession objects.

The default constructor constructs an unopened OSessionCollection object.

The copy constructor copies another OSessionCollection object. If that other OSessionCollection object is open - which means it is a handle on an implementation session collection object - the new OSessionCollection object becomes a handle to that same session collection object. The copy constructor can fail; check whether the new OSessionCollection is open after the constructor call.

There is no Open method for the OSessionCollection class. To get an open OSessionCollection, call the GetSessions method.