ADO » Property » Attributes

Syntax:
long = propertyobject.Attributes

Returns a long value that is the sum of one or more FieldAttributeEnum valuesthat define the characteristics of a Property object.

The Attributes property returns a long value that is the sum of one or more of the ParameterAttributesEnum constants that indicate the characteristics of a Property object.
 
Not all providers support this property.
 
PropertyAttributesEnum Constants
 

Constant Value Description
adPropNotSupported 0 Not supported by provider
adPropRequired 1 Property must be specified before data source is initialized
adPropOptional 2 Property does not have to be specified before data source is initialized
adPropRead 512 User can read property
adPropWrite 1024 User can set property

Examples

Code:
If (objConnection.Properties(strName).Attributes = adPropNotSupported) Then
   Response.Write "WARNING: Not supported by provider"
End If

See Also: