ISpanParsable.TryParse Method (System) (original) (raw)
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 characters into a value.
public:
static bool TryParse(ReadOnlySpan<char> s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result);public static abstract bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out TSelf result);static member TryParse : ReadOnlySpan<char> * IFormatProvider * 'Self -> boolPublic Shared Function TryParse (s As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As TSelf) As BooleanParameters
provider
An object that provides culture-specific formatting information about s.
result
TSelf
When this method returns, contains the result of successfully parsing s, or an undefined value on failure.
Returns
true if s was successfully parsed; otherwise, false.
Applies to
Feedback
Was this page helpful?
No
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?