Skip to content

Latest commit

 

History

History
112 lines (71 loc) · 3.48 KB

File metadata and controls

112 lines (71 loc) · 3.48 KB
description Learn more about: CDBPropIDSet Class
title CDBPropIDSet Class
ms.date 11/04/2016
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
ATL.CDBPropIDSet.CDBPropIDSet
CDBPropIDSet.operator=
ATL.CDBPropIDSet.operator=
ATL::CDBPropIDSet::operator=
CDBPropIDSet::operator=
CDBPropIDSet.SetGUID
ATL::CDBPropIDSet::SetGUID
ATL.CDBPropIDSet.SetGUID
CDBPropIDSet::SetGUID
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

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