Прочетете на английски Редактиране

Споделяне чрез


Uri.Escape Method

Definition

Caution

Uri.Escape has been deprecated and is not supported.

Caution

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

Caution

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

Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.

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. https://go.microsoft.com/fwlink/?linkid=14202")]
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();
Attributes

Exceptions

The URI passed from the constructor is invalid. This exception can occur if a URI has too many characters or the URI is relative.

Applies to

Продукт Версии (остаряло)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10)
.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, 4.8.1)
.NET Standard (2.0, 2.1)