Uri.UnescapeDataString Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts a string to its unescaped representation.
Assembly: System (in System.dll)
Parameters
- stringToUnescape
- Type: System.String
The string to unescape.
Return Value
Type: System.StringA String that contains the unescaped representation of stringToUnescape.
| Exception | Condition |
|---|---|
| ArgumentNullException | stringToUnescape is null. |
You should use this method with care. Unescaping a string that has been previously unescaped can lead to ambiguities and errors.
Many Web browsers escape spaces inside of URIs into plus ("+") characters; however, the UnescapeDataString method does not convert plus characters into spaces because this behavior is not standard across all URI schemes.