Contents Index Topic Contents |
Property Object
A Property object represents a dynamic characteristic of an ADO object that is defined by the provider.
Properties
Attributes, Name, Type, Value
Remarks
ADO objects have two types of properties: built-in and dynamic. Built-in properties are those properties implemented in ADO and immediately available to any new object, using the familiar
MyObject.Property
syntax.Built-in properties do not appear as Property objects in an object’s Properties collection, so while you can change their values, you cannot modify their characteristics or delete them.
Dynamic properties are defined by the underlying data provider, and appear in the Properties collection for the appropriate ADO object. For example, a property specific to the provider may indicate if a Recordset object supports transactions or updating. These additional properties will appear as Property objects in that Recordset object’s Properties collection. Dynamic properties can be referenced only through the collection, using the
MyObject.Properties(0)
orMyObject.Properties("Name")
syntax.A dynamic Property object has four built-in properties of its own:
- The Name property is a string that identifies the property.
- The Type property is an integer that specifies the property data type.
- The Value property is a variant that contains the property setting.
- The Attributes property is a long value that indicates characteristics of the property specific to the provider.
See Also
Using OLE DB Providers with ADO
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.