| description | Learn more about: CDBPropIDSet Class | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | CDBPropIDSet Class | ||||||||||||||||||||
| ms.date | 11/04/2016 | ||||||||||||||||||||
| f1_keywords |
|
||||||||||||||||||||
| helpviewer_keywords |
|
||||||||||||||||||||
| ms.assetid | 52bb806c-9581-494d-9af7-50d8a4834805 |
Inherits from the DBPROPIDSET structure and adds a constructor that initializes key fields as well as the AddPropertyID access method.
class CDBPropIDSet : public tagDBPROPIDSETHeader: atldbcli.h
| Name | Description |
|---|---|
| AddPropertyID | Adds a property to the property ID set. |
| CDBPropIDSet | Constructor. |
| SetGUID | Sets the GUID of the property ID set. |
| Name | Description |
|---|---|
| operator = | Assigns the contents of one property ID set to another. |
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.
Adds a property ID to the property ID set.
bool AddPropertyID(DBPROPID propid) throw();propid
[in] The property ID to be added to the property ID set.
The constructor. Initializes the rgProperties, cProperties, and (optionally) guidPropertySet fields of the DBPROPIDSET structure.
CDBPropIDSet(const GUID& guid);
CDBPropIDSet(const CDBPropIDSet& propidset);
CDBPropIDSet();guid
[in] A GUID used to initialize the guidPropertySet field.
propidset
[in] Another CDBPropIDSet object for copy construction.
Sets the GUID field in the DBPROPIDSET structure.
void SetGUID(const GUID& guid) throw();guid
[in] A GUID used to set the guidPropertySet field of the DBPROPIDSET structure.
This field can be set by the constructor as well. Call this function if you use the default constructor for this class.
Assigns the contents of one property ID set to another ID property set.
CDBPropIDSet& operator =(CDBPropIDSet& propset) throw();OLE DB Consumer Templates
OLE DB Consumer Templates Reference