Skip to content

Commit 0b109ea

Browse files
author
Colin Robertson
authored
Merge pull request #3637 from Jaiganeshkumaran/patch-4
Update deprecating-types-and-members-c-cx.md
2 parents e4aa574 + ddfc563 commit 0b109ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/cppcx/deprecating-types-and-members-c-cx.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ms.assetid: b20b01c1-a439-4ff0-8cf3-d7280c492813
99
In C++/CX, deprecation of Windows Runtime types and members for producers and consumers by using the [Deprecated](/uwp/api/windows.foundation.metadata.deprecatedattribute) attribute is supported. If you consume an API to which this attribute has been applied, you get a compile-time warning message that indicates that the API is deprecated and also recommends an alternative API to use. In your own public types and methods, you can apply this attribute and supply your own custom message.
1010

1111
> [!CAUTION]
12-
> The [Deprecated](/uwp/api/windows.foundation.metadata.deprecatedattribute) attribute is for use only with Windows Runtime types. For standard C++ classes and members, use [__declspec(deprecated)](../cpp/deprecated-cpp.md).
12+
> The [`Deprecated`](/uwp/api/windows.foundation.metadata.deprecatedattribute) attribute is for use only with Windows Runtime types. For standard C++ classes and members, use
13+
[`[[deprecated]]`](../cpp/deprecated-cpp.md) (C++14 and later) or [`__declspec(deprecated)`](../cpp/deprecated-cpp.md).
1314

1415
### Example
1516

0 commit comments

Comments
 (0)