Mono Class Library: System.Uri Overview | Members

System.Uri.Escape Method

Converts any unsafe or reserved characters in the Uri.AbsolutePath component to equivalent escaped hexadecimal sequences.

[System.Obsolete]
protected virtual void Escape ()

Remarks

Operation

Converts any unsafe or reserved characters in the Uri.AbsolutePath component to a character sequence consisting of a "%" followed by the hexadecimal value of the character as described by IETF 2396.

If the path component of the current instance is null, the escaped path is string.Empty.

As described above.

Note to Inheritors
Override this method to customize the escaping behavior provided by the Uri type.

Usage
Applications typically do not call this method; it is intended for use by the constructors.

Note: For additional information on escaping URI, see section 2 of RFC 2396.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0