C# Uri UserEscaped
Description
Uri UserEscaped
indicates that the URI string was completely
escaped before the Uri instance was created.
Syntax
Uri.UserEscaped
has the following syntax.
public bool UserEscaped { get; }
Example
The following example creates a Uri instance and determines whether it was fully escaped when it was created.
// w ww .j a v a 2 s . co m
using System;
public class MainClass{
public static void Main(String[] argv){
Uri uriAddress = new Uri ("http://user:password@www.java2s.com/index.htm ");
Console.WriteLine(uriAddress.UserInfo);
Console.WriteLine(uriAddress.UserEscaped);
}
}
The code above generates the following result.