|
1 | 1 | ---
|
2 | 2 | description: "Learn more about: Add a property to an interface in a Microsoft Visual Studio C++ project"
|
3 | 3 | title: "Add a property"
|
4 |
| -ms.date: "03/31/2022" |
| 4 | +ms.date: 04/08/2022 |
5 | 5 | f1_keywords: ["vc.codewiz.prop.overview"]
|
6 | 6 | helpviewer_keywords: ["interfaces, adding properties", "properties [C++], adding to interfaces", "names, add property wizard", "add property wizard", "stock properties, about stock properties", "stock properties"]
|
7 |
| -ms.assetid: 37bd4db7-efd3-4faa-87ad-64902ed16a36 |
8 | 7 | ms.custom: devdivchpfy22
|
9 | 8 | ---
|
10 | 9 |
|
@@ -39,16 +38,16 @@ Add a property to an interface by using the add property wizard:
|
39 | 38 |
|
40 | 39 | - **Property type**
|
41 | 40 |
|
42 |
| - Sets the type of property you're adding. |
| 41 | + Sets the return type of the property. |
43 | 42 |
|
44 | 43 | - **Get function**
|
45 | 44 |
|
46 |
| - Sets the name of the function to get the property. By default, the name of the `Get` function is set to `Get`*PropertyName*. You can edit this name. If you delete the name, the function [GetNotSupported](../mfc/reference/colecontrol-class.md#getnotsupported) is inserted into the interface dispatch map. The `Get`*PropertyName* function specifies the property as readable. |
| 45 | + Select to add a property getter. By default, the name of the `Get` function is `Get`*PropertyName*. You can edit this name. If you delete the name, the function [`GetNotSupported`](../mfc/reference/colecontrol-class.md#getnotsupported) is inserted into the interface dispatch map. The `Get`*PropertyName* function specifies the property as readable. |
47 | 46 |
|
48 |
| - For ATL interfaces **Get function** sets the property as readable; that is, it creates the `Get` method for retrieving this property from the object. Select **Get**, **Put**, or both. |
| 47 | + For ATL interfaces **Get function** makes the property readable; that is, it creates the `Get` method for retrieving this property from the object. Select **Get**, **Put**, or both. |
49 | 48 |
|
50 |
| -- **Set function** |
| 49 | +- **Put function** |
51 | 50 |
|
52 |
| - Sets the name of the function to set the property. By default, the name of the `Set` function is set to `Set`*PropertyName*. You can edit this name. If you delete the name, the function [SetNotSupported](../mfc/reference/colecontrol-class.md#setnotsupported) is inserted into the interface dispatch map. The `Set`*PropertyName* function specifies that the property is writable. |
| 51 | + Select to add a property setter. By default, the name of the `Set` function is `Set`*PropertyName*. You can edit this name. If you delete the name, the function [`SetNotSupported`](../mfc/reference/colecontrol-class.md#setnotsupported) is inserted into the interface dispatch map. The `Set`*PropertyName* function specifies that the property is writable. |
53 | 52 |
|
54 |
| - For ATL interfaces **Set function** sets the property writable; that is, it creates the `Put` method for setting, or "putting," this property of the object. Select **Get**, **Put**, or both. |
| 53 | + For ATL interfaces **Put function** makes the property writable; that is, it creates the `Put` method for setting, or "putting," this property of the object. Select **Get**, **Put**, or both. |
0 commit comments