Skip to content

Commit 24e8161

Browse files
Copilotgewarren
andcommitted
Add deprecation warning to Uri.UserEscaped property documentation
Co-authored-by: gewarren <[email protected]>
1 parent d338a06 commit 24e8161

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xml/System/Uri.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6030,7 +6030,11 @@ The following examples show a URI and the results of calling <xref:System.Uri.Ge
60306030
<format type="text/markdown"><![CDATA[
60316031
60326032
## Remarks
6033-
The <xref:System.Uri.UserEscaped%2A> property is set to `true` to indicate that the string used to create the <xref:System.Uri> instance was completely escaped before it was passed to the constructor; that is, the `dontEscape` parameter of the constructor call was set to `true`.
6033+
6034+
> [!CAUTION]
6035+
> The <xref:System.Uri.UserEscaped%2A> property represents deprecated functionality that will not work as expected. The `dontEscape` parameter referenced by this property has been deprecated since .NET Framework 4 and will always be `false`. As a result, this property will always return `false` and should not be used to determine URI escaping behavior.
6036+
6037+
The <xref:System.Uri.UserEscaped%2A> property was originally designed to indicate that the string used to create the <xref:System.Uri> instance was completely escaped before it was passed to the constructor; that is, the `dontEscape` parameter of the constructor call was set to `true`. However, since the `dontEscape` parameter is now obsolete and always treated as `false`, this property will always return `false`.
60346038
60356039
## Examples
60366040
The following example creates a <xref:System.Uri> instance and determines whether it was fully escaped when it was created.

0 commit comments

Comments
 (0)