Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Uri.UnescapeDataString Method

July 28, 2014

Converts a string to its unescaped representation.

Namespace:  System
Assembly:  System (in System.dll)

public static string UnescapeDataString(
	string stringToUnescape
)

Parameters

stringToUnescape
Type: System.String
The string to unescape.

Return Value

Type: System.String
A String that contains the unescaped representation of stringToUnescape.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft