Uri.Escape Method ()
This API supports the product infrastructure and is not intended to be used directly from your code.
Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.
Assembly: System (in System.dll)
The URI passed from the constructor is invalid. This exception can occur if a URI has too many characters or the URI is relative.
Available since 1.1