Uri.TryEscapeDataString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to convert a span to its escaped representation.
public:
static bool TryEscapeDataString(ReadOnlySpan<char> charsToEscape, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static bool TryEscapeDataString (ReadOnlySpan<char> charsToEscape, Span<char> destination, out int charsWritten);
static member TryEscapeDataString : ReadOnlySpan<char> * Span<char> * int -> bool
Public Shared Function TryEscapeDataString (charsToEscape As ReadOnlySpan(Of Char), destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
Parameters
- charsToEscape
- ReadOnlySpan<Char>
The span to escape.
- charsWritten
- Int32
When this method returns, contains the number of chars that were written into destination
.
Returns
true
if the destination
was large enough to hold the entire result; otherwise, false
.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.