Skip to content

Commit 9d4c7f8

Browse files
author
Immo Landwerth
authored
Merge pull request #9795 from terrajobst/link-preview-apis
Provide more details for marking APIs as preview
2 parents 2d9290c + b8b5ef9 commit 9d4c7f8

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

xml/System.Diagnostics.CodeAnalysis/ExperimentalAttribute.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@
3030
</Attributes>
3131
<Docs>
3232
<summary>Indicates that an API is experimental and it may change in the future.</summary>
33-
<remarks>This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental feature is used. Authors can use this attribute to ship preview features in their assemblies.</remarks>
33+
<remarks>
34+
<format type="text/markdown"><![CDATA[
35+
<xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute> allows call sites to be flagged with a diagnostic that indicates that an experimental feature is used. You can use this attribute to ship preview features in otherwise stable libraries.
36+
37+
For more information about marking APIs as preview, see [Preview APIs](/dotnet/fundamentals/apicompat/preview-apis).
38+
]]></format>
39+
</remarks>
3440
<seealso cref="T:System.Runtime.Versioning.RequiresPreviewFeaturesAttribute" />
3541
</Docs>
3642
<Members>

xml/System.Runtime.Versioning/RequiresPreviewFeaturesAttribute.xml

+9-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@
3232
</Attributes>
3333
<Docs>
3434
<summary>Indicates that an API is in preview. This attribute allows call sites to be flagged with a diagnostic that indicates that a preview feature is used. Authors can use this attribute to ship preview features in their assemblies.</summary>
35-
<remarks>To be added.</remarks>
35+
<remarks>
36+
<format type="text/markdown"><![CDATA[
37+
<xref:System.Runtime.Versioning.RequiresPreviewFeaturesAttribute> marks an API as requiring preview functionality from the .NET runtime, its core libraries, and the compilers. This API is intended for platform-provided functionality and generally shouldn't be used in user code.
38+
39+
If you want to ship preview functionality in your own libraries, use <xref:System.Diagnostics.CodeAnalysis.ExperimentalAttribute> instead.
40+
41+
For more information about marking APIs as preview, see [Preview APIs](/dotnet/fundamentals/apicompat/preview-apis).
42+
]]></format>
43+
</remarks>
3644
<related type="Article" href="https://aka.ms/dotnet-warnings/preview-features">Preview Features</related>
3745
</Docs>
3846
<Members>

0 commit comments

Comments
 (0)