Uri.UnescapeComponent(String) Method

Definition

Converts the specified string by replacing any escape sequences with their unescaped representation.

C#
public static string UnescapeComponent(string toUnescape);

Parameters

toUnescape
String

The string to convert.

Returns

String

The unescaped representation of stringToUnescape.

Remarks

Use UnescapeComponent as a utility if you want a user-readable string of just a component, for example just the Path value, unescaped.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also