This documentation is archived and is not being maintained.

Uri.UserEscaped Property

Indicates that the URI string was escaped before the Uri instance was created.

[Visual Basic]
Public ReadOnly Property UserEscaped As Boolean
[C#]
public bool UserEscaped {get;}
[C++]
public: __property bool get_UserEscaped();
[JScript]
public function get UserEscaped() : Boolean;

Property Value

true if the dontEscape parameter was set to true when the Uri instance was created.

Remarks

The UserEscaped property is set to true to indicate that the string used to create the Uri instance was escaped before it was passed to the constructor; that is, the dontEscape parameter of the constructor call was set to true.

Example

The following example writes the value (true) of the UserEscaped property to the console.

[Visual Basic] 
Dim myUri As New Uri("http://www.contoso.com/thick%20and%20thin.htm", True)
       
Console.WriteLine(myUri.UserEscaped)


[C#] 
Uri myUri = new Uri("http://www.contoso.com/thick%20and%20thin.htm",true);

 Console.WriteLine(myUri.UserEscaped);
   

[C++] 
Uri* baseUri = new Uri("http://www.contoso.com/thick%20and%20thin.htm",true);

Console::WriteLine(baseUri->UserEscaped);
   

[JScript] 
var myUri : Uri = new Uri("http://www.contoso.com/thick%20and%20thin.htm",true);
Console.WriteLine(myUri.UserEscaped);

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace

Show: