Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 3.56 KB

File metadata and controls

55 lines (44 loc) · 3.56 KB
title Attributes Property (ADO) | Microsoft Docs
ms.prod sql
ms.prod_service connectivity
ms.technology connectivity
ms.custom
ms.date 01/19/2017
ms.reviewer
ms.topic conceptual
apitype COM
f1_keywords
Connection15::Attributes
Field20::Attributes
_Parameter::Attributes
helpviewer_keywords
Attributes property [ADO]
ms.assetid acc15d40-68a6-4ba9-85bd-12d331aecaa6
author MightyPen
ms.author genemi

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

Connection Object (ADO) Field Object
Parameter Object Property Object (ADO)

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)