Share via


Uri.UnescapeComponent(String) 方法

定義

轉換指定的字串,方法是將任何逸出序列取代成未逸出的表示。

public:
 static Platform::String ^ UnescapeComponent(Platform::String ^ toUnescape);
 static winrt::hstring UnescapeComponent(winrt::hstring const& toUnescape);
public static string UnescapeComponent(string toUnescape);
function unescapeComponent(toUnescape)
Public Shared Function UnescapeComponent (toUnescape As String) As String

參數

toUnescape
String

Platform::String

winrt::hstring

要轉換的字串。

傳回

String

Platform::String

winrt::hstring

stringToUnescape的未逸出表示。

備註

如果您想要只讓元件的使用者可讀取字串,例如 Path 值未 逸出,請使用 UnescapeComponent 作為公用程式。

適用於

另請參閱