Assembly: System (in system.dll)
The string to unescape.
Return ValueA String that contains the unescaped representation of stringToUnescape.
stringToUnescape is a null reference (Nothing in Visual Basic).
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.
The following code example unescapes a URI, and then converts any plus characters ("+") into spaces.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.