INumberBase<TSelf>.IUtf8SpanParsable<TSelf>.TryParse 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.
Tries to parse a span of UTF-8 characters into a value.
static bool System.IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result) = IUtf8SpanParsable<TSelf>::TryParse;
static bool IUtf8SpanParsable<TSelf>.TryParse (ReadOnlySpan<byte> utf8Text, IFormatProvider provider, out TSelf result);
static member System.IUtf8SpanParsable<TSelf>.TryParse : ReadOnlySpan<byte> * IFormatProvider * 'Self -> bool
Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider, ByRef result As TSelf) As Boolean Implements IUtf8SpanParsable(Of TSelf).TryParse
Parameters
- utf8Text
- ReadOnlySpan<Byte>
The span of UTF-8 characters to parse.
- provider
- IFormatProvider
An object that provides culture-specific formatting information about utf8Text
.
- result
- TSelf
On return, contains the result of successfully parsing utf8Text
or an undefined value on failure.
Returns
true
if utf8Text
was successfully parsed; otherwise, false
.
Implements
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.