INumberBase<TSelf>.TryParse 메서드

정의

오버로드

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, TSelf)

UTF-8 문자 범위를 값으로 구문 분석하려고 시도합니다.

TryParse(String, NumberStyles, IFormatProvider, TSelf)

문자열을 값으로 구문 분석하려고 합니다.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, TSelf)

문자 범위를 값으로 구문 분석하려고 합니다.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, TSelf)

Source:
INumberBase.cs
Source:
INumberBase.cs

UTF-8 문자 범위를 값으로 구문 분석하려고 시도합니다.

public:
 static override bool TryParse(ReadOnlySpan<System::Byte> utf8Text, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result);
public static virtual bool TryParse (ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style, IFormatProvider? provider, out TSelf result);
static member TryParse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider * 'Self -> bool
Public Shared Overrides Function TryParse (utf8Text As ReadOnlySpan(Of Byte), style As NumberStyles, provider As IFormatProvider, ByRef result As TSelf) As Boolean

매개 변수

utf8Text
ReadOnlySpan<Byte>

구문 분석할 UTF-8자의 범위입니다.

style
NumberStyles

utf8Text있을 수 있는 숫자 스타일의 비트 조합입니다.

provider
IFormatProvider

utf8Text에 대한 문화권별 서식 정보를 제공하는 개체입니다.

result
TSelf

반환 시 에는 성공적으로 구문 분석 utf8Text 한 결과 또는 실패 시 정의되지 않은 값이 포함됩니다.

반환

true 가 성공적으로 구문 분석되었으면 utf8Text 이고, false그렇지 않으면 입니다.

예외

style 가 지원되는 NumberStyles 값이 아닙니다.

적용 대상

TryParse(String, NumberStyles, IFormatProvider, TSelf)

Source:
INumberBase.cs
Source:
INumberBase.cs
Source:
INumberBase.cs

문자열을 값으로 구문 분석하려고 합니다.

public:
 static bool TryParse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result);
public static abstract bool TryParse (string? s, System.Globalization.NumberStyles style, IFormatProvider? provider, out TSelf result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider * 'Self -> bool
Public Shared Function TryParse (s As String, style As NumberStyles, provider As IFormatProvider, ByRef result As TSelf) As Boolean

매개 변수

s
String

구문 분석할 문자열입니다.

style
NumberStyles

s있을 수 있는 숫자 스타일의 비트 조합입니다.

provider
IFormatProvider

s에 대한 문화권별 서식 정보를 제공하는 개체입니다.

result
TSelf

반환 시 에는 성공적으로 구문 분석 s 한 결과 또는 실패 시 정의되지 않은 값이 포함됩니다.

반환

true 가 성공적으로 구문 분석되었으면 s 이고, false그렇지 않으면 입니다.

예외

style 가 지원되는 NumberStyles 값이 아닙니다.

적용 대상

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, TSelf)

Source:
INumberBase.cs
Source:
INumberBase.cs
Source:
INumberBase.cs

문자 범위를 값으로 구문 분석하려고 합니다.

public:
 static bool TryParse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result);
public static abstract bool TryParse (ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider? provider, out TSelf result);
static member TryParse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider * 'Self -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), style As NumberStyles, provider As IFormatProvider, ByRef result As TSelf) As Boolean

매개 변수

s
ReadOnlySpan<Char>

구문 분석할 문자의 범위입니다.

style
NumberStyles

s있을 수 있는 숫자 스타일의 비트 조합입니다.

provider
IFormatProvider

s에 대한 문화권별 서식 정보를 제공하는 개체입니다.

result
TSelf

반환 시 에는 성공적으로 구문 분석 s 한 결과 또는 실패 시 정의되지 않은 값이 포함됩니다.

반환

true 가 성공적으로 구문 분석되었으면 s 이고, false그렇지 않으면 입니다.

예외

style 가 지원되는 NumberStyles 값이 아닙니다.

적용 대상