Url.Unescape(String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将转义的字符串转换为非转义字符串。
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 。
返回
未转义的字符串。
注解
此方法将十六进制编码的字符转换为 ASCII,并将正斜杠替换为默认的目录分隔符。