|
1 | 1 | --- |
2 | 2 | description: "Learn more about: Use a Microsoft Visual Studio wizard to add an IDL property to an IDL interface in your project" |
3 | 3 | title: "Add an IDL property" |
4 | | -ms.date: "04/04/2022" |
| 4 | +ms.date: "04/07/2022" |
5 | 5 | f1_keywords: ["vc.codewiz.prop.overview", "vc.codewiz.prop.idlattributes"] |
6 | 6 | helpviewer_keywords: ["interfaces, adding properties", "properties [C++], adding to interfaces", "names, add property wizard", "IDL attributes", "stock properties, about stock properties", "stock properties"] |
7 | 7 | ms.assetid: 37bd4db7-efd3-4faa-87ad-64902ed16a36 |
@@ -89,31 +89,31 @@ The following section describes the UI that you'll use to add an IDL property: |
89 | 89 |
|
90 | 90 | 1. `helpcontext` |
91 | 91 |
|
92 | | - Specifies a context ID that lets the user view information about this property in the Help file. For more information, see [helpcontext](/windows/win32/Midl/helpcontext) in the *MIDL Reference*. |
| 92 | + Specifies a context ID that lets the user view information about this property in the Help file. For more information, see [helpcontext](/windows/win32/Midl/helpcontext) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md). |
93 | 93 |
|
94 | 94 | 1. `helpstring` |
95 | 95 |
|
96 | | - Specifies a character string that's used to describe the element to which it applies. By default, it's set to **`property`** *Property name*. For more information, see [helpstring](/windows/win32/Midl/helpstring) in the *MIDL Reference*. |
| 96 | + Specifies a character string that's used to describe the element to which it applies. By default, it's set to **`property`** *Property name*. For more information, see [helpstring](/windows/win32/Midl/helpstring) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md). |
97 | 97 |
|
98 | 98 | 1. `id` |
99 | 99 |
|
100 | | - Sets the numerical ID that identifies the property. This option isn't available for properties of custom interfaces. For more information, see [id](/windows/win32/Midl/id) in the *MIDL Reference*. |
| 100 | + Sets the numerical ID that identifies the property. This option isn't available for properties of custom interfaces. For more information, see [id](/windows/win32/Midl/id) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md). |
101 | 101 |
|
102 | 102 | - **Additional attributes** |
103 | 103 |
|
104 | 104 | |Option|Description| |
105 | 105 | |------------|-----------------| |
106 | | - |`bindable`|Indicates that the property supports data binding. For more information, see [bindable](/windows/win32/Midl/bindable) in the *MIDL Reference*.| |
107 | | - |`defaultbind`|Indicates that this single, bindable property best represents the object. For more information, see [defaultbind](/windows/win32/Midl/defaultbind) in the *MIDL Reference*.| |
108 | | - |`defaultcollelem`|Indicates that the property is an accessor function for an element of the default collection. For more information, see [defaultcollelem](/windows/win32/Midl/defaultcollelem) in the *MIDL Reference*.| |
109 | | - |`displaybind`|Indicates that this property should be displayed to the user as bindable. For more information, see [displaybind](/windows/win32/Midl/displaybind) in the *MIDL Reference*.| |
110 | | - |`hidden`|Indicates that the property exists but shouldn't be displayed in a user-oriented browser. For more information, see [hidden](/windows/win32/Midl/hidden) in the *MIDL Reference*.| |
111 | | - |`immediatebind`|Indicates that the database will be notified immediately of all changes to this property of a data-bound object. For more information, see [immediatebind](/windows/win32/Midl/immediatebind) in the *MIDL Reference*.| |
112 | | - |`local`|Specifies to the MIDL compiler that the property isn't remote. For more information, see [local](/windows/win32/Midl/local) in the *MIDL Reference*.| |
113 | | - |`nonbrowsable`|Tags an interface or dispinterface member that shouldn't be displayed in a properties browser. For more information, see [nonbrowsable](/windows/win32/Midl/nonbrowsable) in the *MIDL Reference*.| |
114 | | - |`requestedit`|Indicates that the property supports the `OnRequestEdit` notification. For more information, see [requestedit](/windows/win32/Midl/requestedit) in the *MIDL Reference*.| |
115 | | - |`restricted`|Specifies that the property can't be called arbitrarily. For more information, see [restricted](/windows/win32/Midl/restricted) in the *MIDL Reference*.| |
116 | | - |`source`|Indicates that a member of the property is a source of events. For more information, see [source](/windows/win32/Midl/source) in the *MIDL Reference*.| |
| 106 | + |`bindable`|Indicates that the property supports data binding. For more information, see [bindable](/windows/win32/Midl/bindable) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 107 | + |`defaultbind`|Indicates that this single, bindable property best represents the object. For more information, see [defaultbind](/windows/win32/Midl/defaultbind) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 108 | + |`defaultcollelem`|Indicates that the property is an accessor function for an element of the default collection. For more information, see [defaultcollelem](/windows/win32/Midl/defaultcollelem) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 109 | + |`displaybind`|Indicates that this property should be displayed to the user as bindable. For more information, see [displaybind](/windows/win32/Midl/displaybind) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 110 | + |`hidden`|Indicates that the property exists but shouldn't be displayed in a user-oriented browser. For more information, see [hidden](/windows/win32/Midl/hidden) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 111 | + |`immediatebind`|Indicates that the database will be notified immediately of all changes to this property of a data-bound object. For more information, see [immediatebind](/windows/win32/Midl/immediatebind) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 112 | + |`local`|Specifies to the MIDL compiler that the property isn't remote. For more information, see [local](/windows/win32/Midl/local) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 113 | + |`nonbrowsable`|Tags an interface or dispinterface member that shouldn't be displayed in a properties browser. For more information, see [nonbrowsable](/windows/win32/Midl/nonbrowsable) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 114 | + |`requestedit`|Indicates that the property supports the `OnRequestEdit` notification. For more information, see [requestedit](/windows/win32/Midl/requestedit) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 115 | + |`restricted`|Specifies that the property can't be called arbitrarily. For more information, see [restricted](/windows/win32/Midl/restricted) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
| 116 | + |`source`|Indicates that a member of the property is a source of events. For more information, see [source](/windows/win32/Midl/source) in the [MIDL Reference](/windows/win32/midl/midl-language-reference.md).| |
117 | 117 |
|
118 | 118 | ## **See also** |
119 | 119 |
|
|
0 commit comments