Skip to content

Latest commit

 

History

History
106 lines (77 loc) · 3.78 KB

File metadata and controls

106 lines (77 loc) · 3.78 KB
title CDBPropIDSet Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.technology
cpp-data
ms.topic reference
f1_keywords
CDBPropIDSet
ATL.CDBPropIDSet
ATL::CDBPropIDSet
CDBPropIDSet.AddPropertyID
CDBPropIDSet::AddPropertyID
AddPropertyID
ATL.CDBPropIDSet.AddPropertyID
ATL::CDBPropIDSet::AddPropertyID
ATL::CDBPropIDSet::CDBPropIDSet
CDBPropIDSet
CDBPropIDSet.CDBPropIDSet
CDBPropIDSet::CDBPropIDSet
ATL.CDBPropIDSet.CDBPropIDSet
CDBPropIDSet.operator=
ATL.CDBPropIDSet.operator=
ATL::CDBPropIDSet::operator=
CDBPropIDSet::operator=
CDBPropIDSet.SetGUID
ATL::CDBPropIDSet::SetGUID
SetGUID
ATL.CDBPropIDSet.SetGUID
CDBPropIDSet::SetGUID
dev_langs
C++
helpviewer_keywords
CDBPropIDSet class
AddPropertyID method
CDBPropIDSet class, constructor
operator =, property sets
= operator, with OLE DB templates
operator=, property sets
SetGUID method
ms.assetid 52bb806c-9581-494d-9af7-50d8a4834805
author mikeblome
ms.author mblome
ms.workload
cplusplus
data-storage

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

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

Operators

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