Afficher en anglais

Partage via


Uri.Escape Méthode

Définition

Attention

The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202

Attention

Uri.Escape has been deprecated and is not supported.

Attention

The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202

Convertit tous les caractères non sécurisés ou réservés dans le composant de chemin d'accès en leurs présentations en caractères hexadécimaux.

C#
[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 ();
C#
[System.Obsolete("Uri.Escape has been deprecated and is not supported.")]
protected virtual void Escape ();
C#
[System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Escape ();
C#
protected virtual void Escape ();
Attributs

Exceptions

L'URI passé du constructeur n'est pas valide. Cette exception peut se produire si un URI contient trop de caractères ou s'il est relatif.

S’applique à

Produit Versions (Obsolète)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8)
.NET Standard (2.0, 2.1)