IntPtr.Parse 메서드

정의

오버로드

Name Description
Parse(String, NumberStyles, IFormatProvider)

지정된 스타일 및 문화권별 형식의 숫자 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

지정된 스타일 및 문화권별 형식으로 된 숫자의 읽기 전용 문자 표현 범위를 해당하는 부호 있는 네이티브 정수로 변환합니다.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

UTF-8 문자의 범위를 값으로 구문 분석합니다.

Parse(String, IFormatProvider)

지정된 문화권별 형식의 숫자 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

Parse(ReadOnlySpan<Char>, IFormatProvider)

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

Parse(ReadOnlySpan<Byte>, IFormatProvider)

UTF-8 문자의 범위를 값으로 구문 분석합니다.

Parse(String)

숫자의 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

Parse(String, NumberStyles)

지정된 스타일의 숫자 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

Parse(String, NumberStyles, IFormatProvider)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

지정된 스타일 및 문화권별 형식의 숫자 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

public:
 static IntPtr Parse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider) = System::Numerics::INumberBase<IntPtr>::Parse;
public:
 static IntPtr Parse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider);
public static IntPtr Parse(string s, System.Globalization.NumberStyles style, IFormatProvider? provider);
static member Parse : string * System.Globalization.NumberStyles * IFormatProvider -> nativeint
Public Shared Function Parse (s As String, style As NumberStyles, provider As IFormatProvider) As IntPtr

매개 변수

s
String

변환할 숫자를 포함하는 문자열입니다.

style
NumberStyles

에 있을 s수 있는 스타일 요소를 나타내는 열거형 값의 비트 조합입니다.

provider
IFormatProvider

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

반품

IntPtr

nativeint

에 포함된 숫자에 해당하는 부호 있는 네이티브 정수입니다 s.

구현

예외

snull입니다.

style가 값이 NumberStyles 아니거나 style 값과 HexNumber 값의 AllowHexSpecifier 조합이 아닌 경우

s 가 올바른 형식이 아닙니다.

s 는 .보다 MinValue 작거나 큰 MaxValue숫자를 나타냅니다.

적용 대상

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

지정된 스타일 및 문화권별 형식으로 된 숫자의 읽기 전용 문자 표현 범위를 해당하는 부호 있는 네이티브 정수로 변환합니다.

public static IntPtr Parse(ReadOnlySpan<char> s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, IFormatProvider? provider = default);
static member Parse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider -> nativeint
Public Shared Function Parse (s As ReadOnlySpan(Of Char), Optional style As NumberStyles = System.Globalization.NumberStyles.Integer, Optional provider As IFormatProvider = Nothing) As IntPtr

매개 변수

s
ReadOnlySpan<Char>

변환할 숫자를 포함하는 읽기 전용 문자 범위입니다.

style
NumberStyles

에 있을 s수 있는 스타일 요소를 나타내는 열거형 값의 비트 조합입니다.

provider
IFormatProvider

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

반품

IntPtr

nativeint

에 포함된 숫자에 해당하는 부호 있는 네이티브 정수입니다 s.

구현

예외

style가 값이 NumberStyles 아니거나 style 값과 HexNumber 값의 AllowHexSpecifier 조합이 아닌 경우

s 가 올바른 형식이 아닙니다.

s 는 .보다 MinValue 작거나 큰 MaxValue숫자를 나타냅니다.

적용 대상

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

UTF-8 문자의 범위를 값으로 구문 분석합니다.

public static IntPtr Parse(ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, IFormatProvider? provider = default);
static member Parse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider -> nativeint
Public Shared Function Parse (utf8Text As ReadOnlySpan(Of Byte), Optional style As NumberStyles = System.Globalization.NumberStyles.Integer, Optional provider As IFormatProvider = Nothing) As IntPtr

매개 변수

utf8Text
ReadOnlySpan<Byte>

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

style
NumberStyles

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

provider
IFormatProvider

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

반품

IntPtr

nativeint

구문 분석의 결과입니다 utf8Text.

구현

적용 대상

Parse(String, IFormatProvider)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

지정된 문화권별 형식의 숫자 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

public:
 static IntPtr Parse(System::String ^ s, IFormatProvider ^ provider) = IParsable<IntPtr>::Parse;
public:
 static IntPtr Parse(System::String ^ s, IFormatProvider ^ provider);
public static IntPtr Parse(string s, IFormatProvider? provider);
static member Parse : string * IFormatProvider -> nativeint
Public Shared Function Parse (s As String, provider As IFormatProvider) As IntPtr

매개 변수

s
String

변환할 숫자를 포함하는 문자열입니다.

provider
IFormatProvider

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

반품

IntPtr

nativeint

에 포함된 숫자에 해당하는 부호 있는 네이티브 정수입니다 s.

구현

예외

snull입니다.

s 가 올바른 형식이 아닙니다.

s 는 .보다 MinValue 작거나 큰 MaxValue숫자를 나타냅니다.

적용 대상

Parse(ReadOnlySpan<Char>, IFormatProvider)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

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

public:
 static IntPtr Parse(ReadOnlySpan<char> s, IFormatProvider ^ provider) = ISpanParsable<IntPtr>::Parse;
public static IntPtr Parse(ReadOnlySpan<char> s, IFormatProvider? provider);
static member Parse : ReadOnlySpan<char> * IFormatProvider -> nativeint
Public Shared Function Parse (s As ReadOnlySpan(Of Char), provider As IFormatProvider) As IntPtr

매개 변수

s
ReadOnlySpan<Char>

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

provider
IFormatProvider

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

반품

IntPtr

nativeint

구문 분석의 결과입니다 s.

구현

적용 대상

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

UTF-8 문자의 범위를 값으로 구문 분석합니다.

public:
 static IntPtr Parse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider) = IUtf8SpanParsable<IntPtr>::Parse;
public static IntPtr Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider);
static member Parse : ReadOnlySpan<byte> * IFormatProvider -> nativeint
Public Shared Function Parse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider) As IntPtr

매개 변수

utf8Text
ReadOnlySpan<Byte>

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

provider
IFormatProvider

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

반품

IntPtr

nativeint

구문 분석의 결과입니다 utf8Text.

구현

적용 대상

Parse(String)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

숫자의 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

public:
 static IntPtr Parse(System::String ^ s);
public static IntPtr Parse(string s);
static member Parse : string -> nativeint
Public Shared Function Parse (s As String) As IntPtr

매개 변수

s
String

변환할 숫자를 포함하는 문자열입니다.

반품

IntPtr

nativeint

에 포함된 숫자에 해당하는 부호 있는 네이티브 정수입니다 s.

예외

snull입니다.

s 가 올바른 형식이 아닙니다.

s 는 .보다 MinValue 작거나 큰 MaxValue숫자를 나타냅니다.

적용 대상

Parse(String, NumberStyles)

Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs
Source:
IntPtr.cs

지정된 스타일의 숫자 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다.

public:
 static IntPtr Parse(System::String ^ s, System::Globalization::NumberStyles style);
public static IntPtr Parse(string s, System.Globalization.NumberStyles style);
static member Parse : string * System.Globalization.NumberStyles -> nativeint
Public Shared Function Parse (s As String, style As NumberStyles) As IntPtr

매개 변수

s
String

변환할 숫자를 포함하는 문자열입니다.

style
NumberStyles

에 있을 s수 있는 스타일 요소를 나타내는 열거형 값의 비트 조합입니다.

반품

IntPtr

nativeint

에 포함된 숫자에 해당하는 부호 있는 네이티브 정수입니다 s.

예외

snull입니다.

style가 값이 NumberStyles 아니거나 style 값과 HexNumber 값의 AllowHexSpecifier 조합이 아닌 경우

s 가 올바른 형식이 아닙니다.

s 는 .보다 MinValue 작거나 큰 MaxValue숫자를 나타냅니다.

적용 대상