Skip to content

Commit 104acfe

Browse files
authored
Update UriFormatException condition (dotnet#10941)
1 parent 5d45766 commit 104acfe

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

xml/System/Uri.xml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1971,9 +1971,7 @@ If you used an escaped string to construct this instance (for example, `"http://
19711971
</remarks>
19721972
<exception cref="T:System.ArgumentNullException">
19731973
<paramref name="stringToEscape" /> is <see langword="null" />.</exception>
1974-
<exception cref="T:System.UriFormatException">Note: In the <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for Windows Store apps</see> or the <see href="https://learn.microsoft.com/dotnet/standard/cross-platform/cross-platform-development-with-the-portable-class-library">Portable Class Library</see>, catch the base class exception, <see cref="T:System.FormatException" />, instead.
1975-
1976-
The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exception>
1974+
<exception cref="T:System.UriFormatException">.NET Framework only: The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exception>
19771975
</Docs>
19781976
</Member>
19791977
<Member MemberName="EscapeString">
@@ -2129,9 +2127,7 @@ If you used an escaped string to construct this instance (for example, `"http://
21292127
</remarks>
21302128
<exception cref="T:System.ArgumentNullException">
21312129
<paramref name="stringToEscape" /> is <see langword="null" />.</exception>
2132-
<exception cref="T:System.UriFormatException">The length of <paramref name="stringToEscape" /> exceeds 32766 characters.
2133-
2134-
Note: In <see href="https://learn.microsoft.com/previous-versions/br230232(v=vs.110)">.NET for Windows Store apps</see> or the <see href="https://learn.microsoft.com/dotnet/standard/cross-platform/cross-platform-development-with-the-portable-class-library">Portable Class Library</see>, catch the base class exception, <see cref="T:System.FormatException" />, instead.</exception>
2130+
<exception cref="T:System.UriFormatException">.NET Framework only: The length of <paramref name="stringToEscape" /> exceeds 32766 characters.</exception>
21352131
</Docs>
21362132
</Member>
21372133
<Member MemberName="Fragment">

0 commit comments

Comments
 (0)