Muokkaa

Jaa


Attributes Property (ADO)

Indicates one or more characteristics of an object.

Settings and Return Values

Sets or returns a Long value.

For a Connection object, the Attributes property is read/write, and its value can be the sum of one or more XactAttributeEnum values. The default is zero (0).

For a Parameter object, the Attributes property is read/write, and its value can be the sum of any one or more ParameterAttributesEnum values. The default is adParamSigned.

For a Field object, the Attributes property can be the sum of one or more FieldAttributeEnum values. It is normally read-only. However, for new Field objects that have been appended to the Fields collection of a Record, Attributes is read/write only after the Value property for the Field has been specified and the new Field has been successfully added by the data provider by calling the Update method of the Fields collection.

For a Property object, the Attributes property is read-only, and its value can be the sum of any one or more PropertyAttributesEnum values.

Remarks

Use the Attributes property to set or return characteristics of Connection objects, Parameter objects, Field objects, or Property objects.

When you set multiple attributes, you can sum the appropriate constants. If you set the property value to a sum including incompatible constants, an error occurs.

Note

Remote Data Service Usage This property is not available on a client-side Connection object.

Applies To

See Also

Attributes and Name Properties Example (VB)
Attributes and Name Properties Example (VC++)
AppendChunk Method (ADO)
BeginTrans, CommitTrans, and RollbackTrans Methods (ADO)
GetChunk Method (ADO)