IntPtr.TryParse 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
TryParse(ReadOnlySpan<Byte>, IntPtr) |
숫자의 문자열 표현을 포함하는 UTF-8 문자 범위를 해당하는 부호 있는 정수로 변환하려고 시도합니다. |
TryParse(ReadOnlySpan<Char>, IntPtr) |
숫자의 읽기 전용 문자 표현 범위를 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다. |
TryParse(String, IntPtr) |
숫자의 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다. |
TryParse(ReadOnlySpan<Byte>, IFormatProvider, IntPtr) |
UTF-8 문자 범위를 값으로 구문 분석하려고 시도합니다. |
TryParse(ReadOnlySpan<Char>, IFormatProvider, IntPtr) |
문자열을 값으로 구문 분석하려고 합니다. |
TryParse(String, IFormatProvider, IntPtr) |
문자열을 값으로 구문 분석하려고 합니다. |
TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, IntPtr) |
UTF-8 문자 범위를 값으로 구문 분석하려고 시도합니다. |
TryParse(String, NumberStyles, IFormatProvider, IntPtr) |
지정된 스타일 및 문화권별 형식으로 된 숫자의 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다. |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, IntPtr) |
지정된 스타일 및 문화권별 형식으로 된 숫자의 읽기 전용 문자 표현 범위를 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다. |
TryParse(ReadOnlySpan<Byte>, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
숫자의 문자열 표현을 포함하는 UTF-8 문자 범위를 해당하는 부호 있는 정수로 변환하려고 시도합니다.
public:
static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, [Runtime::InteropServices::Out] IntPtr % result);
public static bool TryParse (ReadOnlySpan<byte> utf8Text, out IntPtr result);
static member TryParse : ReadOnlySpan<byte> * nativeint -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), ByRef result As IntPtr) As Boolean
매개 변수
- utf8Text
- ReadOnlySpan<Byte>
변환할 숫자를 나타내는 UTF-8 문자를 포함하는 범위입니다.
- result
-
IntPtr
nativeint
이 메서드가 반환될 때 변환에 성공한 경우 에 포함된 수에 해당하는 부호 있는 utf8Text
정수 값을 포함하거나 변환에 실패한 경우 0을 포함합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다. 원래 결과에 제공된 모든 값을 덮어쓰게 됩니다.
반환
utf8Text
이(가) 성공적으로 변환되었으면 true
이고, 그렇지 않으면 false
입니다.
적용 대상
TryParse(ReadOnlySpan<Char>, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
숫자의 읽기 전용 문자 표현 범위를 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다.
public:
static bool TryParse(ReadOnlySpan<char> s, [Runtime::InteropServices::Out] IntPtr % result);
public static bool TryParse (ReadOnlySpan<char> s, out IntPtr result);
static member TryParse : ReadOnlySpan<char> * nativeint -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), ByRef result As IntPtr) As Boolean
매개 변수
- s
- ReadOnlySpan<Char>
변환할 숫자를 포함하는 문자의 읽기 전용 범위입니다.
- result
-
IntPtr
nativeint
이 메서드가 반환될 때 변환에 성공한 경우 에 포함된 수에 해당하는 부호 있는 s
네이티브 정수를 포함하거나 변환에 실패한 경우 0을 포함합니다. 매개 변수가 s
비어 있거나, 올바른 형식이 아니거나, 보다 MinValue 작거나 보다 MaxValue큰 숫자를 나타내는 경우 변환이 실패합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다. 원래 결과에 제공된 모든 값을 덮어쓰게 됩니다.
반환
s
이(가) 성공적으로 변환되었으면 true
이고, 그렇지 않으면 false
입니다.
적용 대상
TryParse(String, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
숫자의 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다.
public:
static bool TryParse(System::String ^ s, [Runtime::InteropServices::Out] IntPtr % result);
public static bool TryParse (string? s, out IntPtr result);
static member TryParse : string * nativeint -> bool
Public Shared Function TryParse (s As String, ByRef result As IntPtr) As Boolean
매개 변수
- s
- String
변환할 숫자가 포함된 문자열입니다.
- result
-
IntPtr
nativeint
이 메서드는 변환이 성공한 경우 s
에 있는 숫자의 부호 있는 네이티브 정수 값을 반환하고, 변환이 실패한 경우 0을 반환합니다. 매개 변수가 s
이거나 null
비어 있거나, 올바른 형식이 아니거나, 보다 MinValue 작거나 보다 MaxValue큰 숫자를 나타내는 경우 변환이 실패합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다. 원래 결과에 제공된 모든 값을 덮어쓰게 됩니다.
반환
s
이(가) 성공적으로 변환되었으면 true
이고, 그렇지 않으면 false
입니다.
적용 대상
TryParse(ReadOnlySpan<Byte>, IFormatProvider, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
UTF-8 문자 범위를 값으로 구문 분석하려고 시도합니다.
public:
static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result) = IUtf8SpanParsable<IntPtr>::TryParse;
public static bool TryParse (ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out IntPtr result);
static member TryParse : ReadOnlySpan<byte> * IFormatProvider * nativeint -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider, ByRef result As IntPtr) As Boolean
매개 변수
- utf8Text
- ReadOnlySpan<Byte>
구문 분석할 UTF-8자의 범위입니다.
- provider
- IFormatProvider
utf8Text
에 대한 문화권별 서식 정보를 제공하는 개체입니다.
- result
-
IntPtr
nativeint
반환 시 에는 성공적으로 구문 분석 utf8Text
한 결과 또는 실패 시 정의되지 않은 값이 포함됩니다.
반환
true
가 성공적으로 구문 분석되었으면 utf8Text
이고, false
그렇지 않으면 입니다.
적용 대상
TryParse(ReadOnlySpan<Char>, IFormatProvider, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
문자열을 값으로 구문 분석하려고 합니다.
public:
static bool TryParse(ReadOnlySpan<char> s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result) = ISpanParsable<IntPtr>::TryParse;
public static bool TryParse (ReadOnlySpan<char> s, IFormatProvider? provider, out IntPtr result);
static member TryParse : ReadOnlySpan<char> * IFormatProvider * nativeint -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As IntPtr) As Boolean
매개 변수
- s
- ReadOnlySpan<Char>
변환할 숫자를 포함하는 문자의 읽기 전용 범위입니다.
- provider
- IFormatProvider
s
에 대한 문화권별 서식 정보를 제공하는 개체입니다.
- result
-
IntPtr
nativeint
이 메서드가 반환될 때 실패 시 성공적으로 구문 분석 s
한 결과 또는 정의되지 않은 값이 포함됩니다.
반환
s
이(가) 성공적으로 변환되었으면 true
이고, 그렇지 않으면 false
입니다.
적용 대상
TryParse(String, IFormatProvider, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
문자열을 값으로 구문 분석하려고 합니다.
public:
static bool TryParse(System::String ^ s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result) = IParsable<IntPtr>::TryParse;
public static bool TryParse (string? s, IFormatProvider? provider, out IntPtr result);
static member TryParse : string * IFormatProvider * nativeint -> bool
Public Shared Function TryParse (s As String, provider As IFormatProvider, ByRef result As IntPtr) As Boolean
매개 변수
- s
- String
구문 분석할 문자열입니다.
- provider
- IFormatProvider
s
에 대한 문화권별 서식 정보를 제공하는 개체입니다.
- result
-
IntPtr
nativeint
이 메서드가 반환될 때 실패 시 성공적으로 구문 분석 s
한 결과 또는 정의되지 않은 값이 포함됩니다.
반환
true
가 성공적으로 구문 분석되었으면 s
이고, false
그렇지 않으면 입니다.
적용 대상
TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
UTF-8 문자 범위를 값으로 구문 분석하려고 시도합니다.
public:
static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result) = System::Numerics::INumberBase<IntPtr>::TryParse;
public static bool TryParse (ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style, IFormatProvider? provider, out IntPtr result);
static member TryParse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider * nativeint -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), style As NumberStyles, provider As IFormatProvider, ByRef result As IntPtr) As Boolean
매개 변수
- utf8Text
- ReadOnlySpan<Byte>
구문 분석할 UTF-8자의 범위입니다.
- style
- NumberStyles
에 utf8Text
있을 수 있는 숫자 스타일의 비트 조합입니다.
- provider
- IFormatProvider
utf8Text
에 대한 문화권별 서식 정보를 제공하는 개체입니다.
- result
-
IntPtr
nativeint
반환 시 에는 성공적으로 구문 분석 utf8Text
한 결과 또는 실패 시 정의되지 않은 값이 포함됩니다.
반환
true
가 성공적으로 구문 분석되었으면 utf8Text
이고, false
그렇지 않으면 입니다.
적용 대상
TryParse(String, NumberStyles, IFormatProvider, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
지정된 스타일 및 문화권별 형식으로 된 숫자의 문자열 표현을 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다.
public:
static bool TryParse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result);
public:
static bool TryParse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result) = System::Numerics::INumberBase<IntPtr>::TryParse;
public static bool TryParse (string? s, System.Globalization.NumberStyles style, IFormatProvider? provider, out IntPtr result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider * nativeint -> bool
Public Shared Function TryParse (s As String, style As NumberStyles, provider As IFormatProvider, ByRef result As IntPtr) As Boolean
매개 변수
- s
- String
변환할 숫자가 포함된 문자열입니다. 이 문자열은 style
이 지정하는 스타일을 사용하여 해석됩니다.
- style
- NumberStyles
s
에 나타날 수 있는 스타일 요소를 나타내는 열거형 값의 비트 조합입니다.
- provider
- IFormatProvider
s
에 대한 문화권별 형식 지정 정보를 제공하는 개체입니다.
- result
-
IntPtr
nativeint
이 메서드는 변환이 성공한 경우 s
에 있는 숫자의 부호 있는 네이티브 정수 값을 반환하고, 변환이 실패한 경우 0을 반환합니다. 매개 변수가 s
이거나 null
비어 있거나, 올바른 형식이 아니거나, 보다 MinValue 작거나 보다 MaxValue큰 숫자를 나타내는 경우 변환이 실패합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다. 원래 결과에 제공된 모든 값을 덮어쓰게 됩니다.
반환
s
이(가) 성공적으로 변환되었으면 true
이고, 그렇지 않으면 false
입니다.
적용 대상
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, IntPtr)
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
- Source:
- IntPtr.cs
지정된 스타일 및 문화권별 형식으로 된 숫자의 읽기 전용 문자 표현 범위를 해당하는 부호 있는 네이티브 정수로 변환합니다. 반환 값은 변환의 성공 여부를 나타냅니다.
public:
static bool TryParse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result);
public:
static bool TryParse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] IntPtr % result) = System::Numerics::INumberBase<IntPtr>::TryParse;
public static bool TryParse (ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider? provider, out IntPtr result);
static member TryParse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider * nativeint -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), style As NumberStyles, provider As IFormatProvider, ByRef result As IntPtr) As Boolean
매개 변수
- s
- ReadOnlySpan<Char>
변환할 숫자를 포함하는 문자의 읽기 전용 범위입니다. 이 문자열은 style
이 지정하는 스타일을 사용하여 해석됩니다.
- style
- NumberStyles
s
에 나타날 수 있는 스타일 요소를 나타내는 열거형 값의 비트 조합입니다.
- provider
- IFormatProvider
s
에 대한 문화권별 형식 지정 정보를 제공하는 개체입니다.
- result
-
IntPtr
nativeint
이 메서드는 변환이 성공한 경우 s
에 있는 숫자의 부호 있는 네이티브 정수 값을 반환하고, 변환이 실패한 경우 0을 반환합니다. 매개 변수가 s
비어 있거나, 올바른 형식이 아니거나, 보다 MinValue 작거나 보다 MaxValue큰 숫자를 나타내는 경우 변환이 실패합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다. 원래 결과에 제공된 모든 값을 덮어쓰게 됩니다.
반환
s
이(가) 성공적으로 변환되었으면 true
이고, 그렇지 않으면 false
입니다.
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기