CDBPropIDSet Class

Inherits from the DBPROPIDSET structure and adds a constructor that initializes key fields as well as the AddPropertyID access method.

Syntax

class CDBPropIDSet : public tagDBPROPIDSET

Requirements

Header: atldbcli.h

Members

Methods

Name Description
AddPropertyID Adds a property to the property ID set.
CDBPropIDSet Constructor.
SetGUID Sets the GUID of the property ID set.

Operators

Name Description
operator = Assigns the contents of one property ID set to another.

Remarks

OLE DB consumers use DBPROPIDSET structures to pass an array of property IDs for which the consumer wants to get property information. The properties identified in a single DBPROPIDSET structure belong to one property set.

CDBPropIDSet::AddPropertyID

Adds a property ID to the property ID set.

Syntax

bool AddPropertyID(DBPROPID propid) throw();

Parameters

propid
[in] The property ID to be added to the property ID set.

CDBPropIDSet::CDBPropIDSet

The constructor. Initializes the rgProperties, cProperties, and (optionally) guidPropertySet fields of the DBPROPIDSET structure.

Syntax

CDBPropIDSet(const GUID& guid);

CDBPropIDSet(const CDBPropIDSet& propidset);

CDBPropIDSet();

Parameters

guid
[in] A GUID used to initialize the guidPropertySet field.

propidset
[in] Another CDBPropIDSet object for copy construction.

CDBPropIDSet::SetGUID

Sets the GUID field in the DBPROPIDSET structure.

Syntax

void SetGUID(const GUID& guid) throw();

Parameters

guid
[in] A GUID used to set the guidPropertySet field of the DBPROPIDSET structure.

Remarks

This field can be set by the constructor as well. Call this function if you use the default constructor for this class.

CDBPropIDSet::operator =

Assigns the contents of one property ID set to another ID property set.

Syntax

CDBPropIDSet& operator =(CDBPropIDSet& propset) throw();

See also

OLE DB Consumer Templates
OLE DB Consumer Templates Reference