IntPtr.Explicit 연산자

정의

지정한 데이터 형식을 IntPtr 값으로 변환하거나 IntPtr 값을 지정한 데이터 형식으로 변환합니다.

오버로드

Explicit(Void* to IntPtr)

알 수 없는 형식의 지정된 포인터를 IntPtr로 변환합니다.

이 API는 CLS 규격이 아닙니다.

Explicit(IntPtr to Int64)

지정된 IntPtr의 값을 64비트의 부호 있는 정수로 변환합니다.

Explicit(IntPtr to Void*)

지정된 IntPtr의 값을 알 수 없는 형식의 포인터로 변환합니다.

이 API는 CLS 규격이 아닙니다.

Explicit(Int64 to IntPtr)

64비트의 부호 있는 정수의 값을 IntPtr로 변환합니다.

Explicit(IntPtr to Int32)

지정된 IntPtr의 값을 32비트의 부호 있는 정수로 변환합니다.

Explicit(Int32 to IntPtr)

32비트의 부호 있는 정수의 값을 IntPtr로 변환합니다.

Explicit(Void* to IntPtr)

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

중요

이 API는 CLS 규격이 아닙니다.

알 수 없는 형식의 지정된 포인터를 IntPtr로 변환합니다.

이 API는 CLS 규격이 아닙니다.

public:
 static explicit operator IntPtr(void* value);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static explicit operator IntPtr (void* value);
[System.CLSCompliant(false)]
public static explicit operator IntPtr (void* value);
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member op_Explicit : nativeptr<unit> -> nativeint
[<System.CLSCompliant(false)>]
static member op_Explicit : nativeptr<unit> -> nativeint

매개 변수

value
Void*

알 수 없는 형식의 포인터입니다.

반환

IntPtr

nativeint

value로 초기화된 IntPtr의 새 인스턴스입니다.

특성

추가 정보

적용 대상

Explicit(IntPtr to Int64)

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

지정된 IntPtr의 값을 64비트의 부호 있는 정수로 변환합니다.

public:
 static explicit operator long(IntPtr value);
public static explicit operator long (IntPtr value);
static member op_Explicit : nativeint -> int64
Public Shared Narrowing Operator CType (value As IntPtr) As Long

매개 변수

value
IntPtr

nativeint

변환할 부가 정수입니다.

반환

value의 내용입니다.

추가 정보

적용 대상

Explicit(IntPtr to Void*)

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

중요

이 API는 CLS 규격이 아닙니다.

지정된 IntPtr의 값을 알 수 없는 형식의 포인터로 변환합니다.

이 API는 CLS 규격이 아닙니다.

public:
 static explicit operator void*(IntPtr value);
[System.CLSCompliant(false)]
public static explicit operator void* (IntPtr value);
[<System.CLSCompliant(false)>]
static member op_Explicit : nativeint -> nativeptr<unit>

매개 변수

value
IntPtr

nativeint

변환할 부가 정수입니다.

반환

Void*

value의 내용입니다.

특성

추가 정보

적용 대상

Explicit(Int64 to IntPtr)

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

64비트의 부호 있는 정수의 값을 IntPtr로 변환합니다.

public:
 static explicit operator IntPtr(long value);
public static explicit operator IntPtr (long value);
static member op_Explicit : int64 -> nativeint
Public Shared Narrowing Operator CType (value As Long) As IntPtr

매개 변수

value
Int64

64비트 부호 있는 정수입니다.

반환

IntPtr

nativeint

value로 초기화된 IntPtr의 새 인스턴스입니다.

예외

32비트 프로세스에서 가 value 너무 커서 로 나타낼 수 없습니다 IntPtr.

추가 정보

적용 대상

Explicit(IntPtr to Int32)

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

지정된 IntPtr의 값을 32비트의 부호 있는 정수로 변환합니다.

public:
 static explicit operator int(IntPtr value);
public static explicit operator int (IntPtr value);
static member op_Explicit : nativeint -> int
Public Shared Narrowing Operator CType (value As IntPtr) As Integer

매개 변수

value
IntPtr

nativeint

변환할 부가 정수입니다.

반환

value의 내용입니다.

예외

64비트 프로세스에서 의 value 값이 너무 커서 부가된 32비트 정수로 나타낼 수 없습니다.

설명

의 값 value 에 실행 중인 프로세스가 지원하는 것보다 더 많은 비트가 필요한 경우에만 예외가 throw됩니다.

추가 정보

적용 대상

Explicit(Int32 to IntPtr)

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

32비트의 부호 있는 정수의 값을 IntPtr로 변환합니다.

public:
 static explicit operator IntPtr(int value);
public static explicit operator IntPtr (int value);
static member op_Explicit : int -> nativeint
Public Shared Narrowing Operator CType (value As Integer) As IntPtr

매개 변수

value
Int32

32비트 부호 있는 정수입니다.

반환

IntPtr

nativeint

value로 초기화된 IntPtr의 새 인스턴스입니다.

추가 정보

적용 대상