Uri.UserEscaped Uri.UserEscaped Uri.UserEscaped Uri.UserEscaped Property

Definición

Indica que se utilizó una secuencia de escape completa para la cadena de identificador URI antes de crear la instancia de Uri.Indicates that the URI string was completely escaped before the Uri instance was created.

public:
 property bool UserEscaped { bool get(); };
public bool UserEscaped { get; }
member this.UserEscaped : bool
Public ReadOnly Property UserEscaped As Boolean

Valor de propiedad

Valor Boolean que es true si el parámetro dontEscape se estableció en true al crear la instancia de Uri; en caso contrario, false.A Boolean value that is true if the dontEscape parameter was set to true when the Uri instance was created; otherwise, false.

Ejemplos

En el ejemplo siguiente se crea una instancia de Uri y se determina si estaba totalmente con escape cuando se creó.The following example creates a Uri instance and determines whether it was fully escaped when it was created.

Uri^ uriAddress = gcnew Uri( "http://user:password@www.contoso.com/index.htm " );
Console::WriteLine( uriAddress->UserInfo );
Console::WriteLine( "Fully Escaped {0}",
   uriAddress->UserEscaped ? (String^)"yes" : "no" );
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");
Dim uriAddress As New Uri("http://user:password@www.contoso.com/index.htm ")
Console.WriteLine(uriAddress.UserInfo)
Console.WriteLine("Fully Escaped {0}", IIf(uriAddress.UserEscaped, "yes", "no")) 'TODO: For performance reasons this should be changed to nested IF statements

Comentarios

La propiedad UserEscaped se establece en true para indicar que la cadena utilizada para crear la instancia de Uri era completamente de escape antes de pasarse al constructor; es decir, el parámetro dontEscape de la llamada al constructor se estableció en true.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.

Se aplica a