Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

ADOProperty Objects and ADOProperties Collections

ADOConnection, ADOCommand, ADORecordset, and ADOField objects all include a ADOProperties collection, which is used to hold the individual ADOProperty objects associated with the object. ADOProperty objects are used to represent individual option settings or other characteristics of an ADO object that are not handled by the built-in properties of the object. Although each of the ADO objects can support different sorts of properties, they are all manipulated by using the standard ADOProperty object.

ADOProperties Collection Members

The ADOProperties collection includes the Count property, which gives the number of ADOProperty objects in the collection, and the Item property, which is used to access individual ADOProperty objects in the collection. In addition, the ADOProperties collection supports the Refresh method, which can be used to retrieve information for certain dynamic properties exposed by the provider, although this has no effect for properties that we will see here.

ADOProperty Object Properties

An ADOProperty object is relatively simple. It does not expose any methods and has only the following properties:

Share ThisShare This

Informit Network