Skip to content

Commit 33bd140

Browse files
TylerMSFTTylerMSFT
authored andcommitted
edits
1 parent 32568f2 commit 33bd140

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/ide/adding-a-property-visual-cpp.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
description: "Learn more about: Add a property to an interface in a Microsoft Visual Studio C++ project"
33
title: "Add a property"
4-
ms.date: "03/31/2022"
4+
ms.date: 04/08/2022
55
f1_keywords: ["vc.codewiz.prop.overview"]
66
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
87
ms.custom: devdivchpfy22
98
---
109

@@ -39,16 +38,16 @@ Add a property to an interface by using the add property wizard:
3938

4039
- **Property type**
4140

42-
Sets the type of property you're adding.
41+
Sets the return type of the property.
4342

4443
- **Get function**
4544

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.
4746

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.
4948

50-
- **Set function**
49+
- **Put function**
5150

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.
5352

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

Comments
 (0)