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

适用于