Export (0) Print
Expand All

Uri.UserEscaped Property

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

Namespace: System
Assembly: System (in system.dll)

public bool UserEscaped { get; }
/** @property */
public boolean get_UserEscaped ()

public function get UserEscaped () : boolean

Property Value

true if the dontEscape parameter was set to true when the Uri instance was created; otherwise, false.

The UserEscaped property is set to true to indicate that the string used to create the 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.

The following example creates a Uri instance and determines whether it was fully escaped when it was created.

Uri uriAddress = new Uri ("http://user:password@www.contoso.com/index.htm ");
Console.WriteLine(uriAddress.UserInfo);
Console.WriteLine("Fully Escaped {0}", uriAddress.UserEscaped ? "yes" : "no");

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft