You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"operator =, property sets", "= operator, with OLE DB templates", "operator=, property sets", "SetGUID method"]
10
15
ms.assetid: 52bb806c-9581-494d-9af7-50d8a4834805
11
16
author: "mikeblome"
12
17
ms.author: "mblome"
13
18
ms.workload: ["cplusplus", "data-storage"]
14
19
---
15
20
# CDBPropIDSet Class
16
-
Inherits from the **DBPROPIDSET** structure and adds a constructor that initializes key fields as well as the [AddPropertyID](../../data/oledb/cdbpropidset-addpropertyid.md) access method.
21
+
Inherits from the `DBPROPIDSET` structure and adds a constructor that initializes key fields as well as the [AddPropertyID](../../data/oledb/cdbpropidset-addpropertyid.md) access method.
17
22
18
23
## Syntax
19
24
20
25
```cpp
21
26
classCDBPropIDSet : publictagDBPROPIDSET
22
27
```
28
+
29
+
## Requirements
30
+
**Header:** atldbcli.h
23
31
24
32
## Members
25
33
26
34
### Methods
27
35
28
36
|||
29
37
|-|-|
30
-
|[AddPropertyID](../../data/oledb/cdbpropidset-addpropertyid.md)|Adds a property to the property ID set.|
|[SetGUID](../../data/oledb/cdbpropidset-setguid.md)|Sets the GUID of the property ID set.|
38
+
|[AddPropertyID](#addpropertyid)|Adds a property to the property ID set.|
39
+
|[CDBPropIDSet](#cdbpropidset)|Constructor.|
40
+
|[SetGUID](#setguid)|Sets the GUID of the property ID set.|
33
41
34
42
### Operators
35
43
36
44
|||
37
45
|-|-|
38
-
|[operator =](../../data/oledb/cdbpropidset-operator-equal.md)|Assigns the contents of one property ID set to another.|
46
+
|[operator =](#op_equal)|Assigns the contents of one property ID set to another.|
39
47
40
48
## Remarks
41
-
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](https://msdn.microsoft.com/en-us/library/ms717981.aspx) structure belong to one property set.
49
+
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](https://msdn.microsoft.com/library/ms717981.aspx) structure belong to one property set.
The constructor. Initializes the `rgProperties`, `cProperties`, and (optionally) `guidPropertySet` fields of the [DBPROPIDSET](https://msdn.microsoft.com/library/ms717981.aspx) structure.
66
+
67
+
### Syntax
68
+
69
+
```cpp
70
+
CDBPropIDSet(const GUID& guid);
71
+
72
+
CDBPropIDSet(const CDBPropIDSet& propidset);
73
+
74
+
CDBPropIDSet();
75
+
```
76
+
77
+
#### Parameters
78
+
*guid*
79
+
[in] A GUID used to initialize the `guidPropertySet` field.
80
+
81
+
*propidset*
82
+
[in] Another `CDBPropIDSet` object for copy construction.
83
+
84
+
## <a name="setguid"></a> CDBPropIDSet::SetGUID
85
+
Sets the GUID field in the `DBPROPIDSET` structure.
86
+
87
+
### Syntax
88
+
89
+
```cpp
90
+
void SetGUID(const GUID& guid) throw();
91
+
```
92
+
93
+
#### Parameters
94
+
*guid*
95
+
[in] A GUID used to set the `guidPropertySet` field of the [DBPROPIDSET](https://msdn.microsoft.com/library/ms717981.aspx) structure.
96
+
97
+
### Remarks
98
+
This field can be set by the [constructor](../../data/oledb/cdbpropidset-cdbpropidset.md) as well. Call this function if you use the default constructor for this class.
0 commit comments