Url.Unescape(String, Boolean) 方法

定义

将转义的字符串转换为非转义字符串。

public:
 static System::String ^ Unescape(System::String ^ escaped, bool isFile);
public:
 static Platform::String ^ Unescape(Platform::String ^ escaped, bool isFile);
 static std::wstring Unescape(std::wstring const & escaped, bool isFile);
public static string Unescape (string escaped, bool isFile);
static member Unescape : string * bool -> string
Public Shared Function Unescape (escaped As String, isFile As Boolean) As String

参数

escaped
String

要转换的字符串。

isFile
Boolean

true 如果字符串表示文件 URL,则为; 否则为。否则为 false

返回

String

未转义的字符串。

注解

此方法将十六进制编码的字符转换为 ASCII,并将正斜杠替换为默认的目录分隔符。

适用于