Uri.Escape Uri.Escape Uri.Escape Uri.Escape Method

Definición

Advertencia

Esta API está ya obsoleta.

Convierte cualquier carácter no seguro o reservado del componente de ruta de acceso en su representación de carácter hexadecimal.Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.

protected:
 virtual void Escape();
[System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Escape ();
abstract member Escape : unit -> unit
override this.Escape : unit -> unit
Protected Overridable Sub Escape ()

Excepciones

El identificador URI pasado desde el constructor no es válido.The URI passed from the constructor is invalid. Esta excepción se puede producir si un identificador URI tiene demasiados caracteres o si es relativo.This exception can occur if a URI has too many characters or the URI is relative.

Se aplica a