共用方式為


Uri.TryUnescapeDataString 方法

定義

嘗試將範圍轉換成其未逸出的表示法。

public:
 static bool TryUnescapeDataString(ReadOnlySpan<char> charsToUnescape, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static bool TryUnescapeDataString (ReadOnlySpan<char> charsToUnescape, Span<char> destination, out int charsWritten);
static member TryUnescapeDataString : ReadOnlySpan<char> * Span<char> * int -> bool
Public Shared Function TryUnescapeDataString (charsToUnescape As ReadOnlySpan(Of Char), destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

參數

charsToUnescape
ReadOnlySpan<Char>

要取消景觀的範圍。

destination
Span<Char>

包含作業未逸出結果的輸出範圍。

charsWritten
Int32

當這個方法傳回時,會包含寫入至 destination的字元數目。

傳回

如果 destination 夠大,足以保存整個結果,true;否則,false

適用於