IntPtr.Explicit Operator
Definicja
Przeciążenia
Explicit(Void* to IntPtr) |
Konwertuje określony wskaźnik na nieokreślony typ do IntPtr.Converts the specified pointer to an unspecified type to an IntPtr. Ten interfejs API nie jest zgodny ze specyfikacją CLS.This API is not CLS-compliant. |
Explicit(IntPtr to Int64) |
Konwertuje wartość określonego IntPtr na 64-bitową liczbę całkowitą ze znakiem.Converts the value of the specified IntPtr to a 64-bit signed integer. |
Explicit(IntPtr to Void*) |
Konwertuje wartość określonego IntPtr na wskaźnik do nieokreślonego typu.Converts the value of the specified IntPtr to a pointer to an unspecified type. Ten interfejs API nie jest zgodny ze specyfikacją CLS.This API is not CLS-compliant. |
Explicit(Int64 to IntPtr) |
Konwertuje wartość 64-bitowej podpisanej liczby całkowitej na IntPtr.Converts the value of a 64-bit signed integer to an IntPtr. |
Explicit(Int32 to IntPtr) |
Konwertuje wartość 32-bitowej podpisanej liczby całkowitej na IntPtr.Converts the value of a 32-bit signed integer to an IntPtr. |
Explicit(IntPtr to Int32) |
Konwertuje wartość określonego IntPtr na 32-bitową liczbę całkowitą ze znakiem.Converts the value of the specified IntPtr to a 32-bit signed integer. |
Explicit(Void* to IntPtr)
Ważne
Ten interfejs API nie jest zgodny ze specyfikacją CLS.
Konwertuje określony wskaźnik na nieokreślony typ do IntPtr.Converts the specified pointer to an unspecified type to an IntPtr.
Ten interfejs API nie jest zgodny ze specyfikacją CLS.This API is not CLS-compliant.
public:
static explicit operator IntPtr(void* value);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static explicit operator IntPtr (void* value);
static member op_Explicit : nativeptr<unit> -> nativeint
Parametry
- value
- Void*
Wskaźnik do nieokreślonego typu.A pointer to an unspecified type.
Zwraca
- Atrybuty
Zabezpieczenia
SecurityCriticalAttribute
Wymaga pełnego zaufania do bezpośredniego obiektu wywołującego.requires full trust for the immediate caller. Ten element członkowski nie może być używany przez częściowo zaufany lub przejrzysty kod.This member cannot be used by partially trusted or transparent code.
Zobacz też
Explicit(IntPtr to Int64)
Konwertuje wartość określonego IntPtr na 64-bitową liczbę całkowitą ze znakiem.Converts the value of the specified IntPtr to a 64-bit signed integer.
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
Parametry
- value
- IntPtr
Wskaźnik lub uchwyt do przekonwertowania.The pointer or handle to convert.
Zwraca
Zawartość value
.The contents of value
.
Zobacz też
Explicit(IntPtr to Void*)
Ważne
Ten interfejs API nie jest zgodny ze specyfikacją CLS.
Konwertuje wartość określonego IntPtr na wskaźnik do nieokreślonego typu.Converts the value of the specified IntPtr to a pointer to an unspecified type.
Ten interfejs API nie jest zgodny ze specyfikacją CLS.This API is not CLS-compliant.
public:
static explicit operator void*(IntPtr value);
[System.CLSCompliant(false)]
public static explicit operator void* (IntPtr value);
static member op_Explicit : nativeint -> nativeptr<unit>
Parametry
- value
- IntPtr
Wskaźnik lub uchwyt do przekonwertowania.The pointer or handle to convert.
Zwraca
Zawartość value
.The contents of value
.
- Atrybuty
Zobacz też
Explicit(Int64 to IntPtr)
Konwertuje wartość 64-bitowej podpisanej liczby całkowitej na IntPtr.Converts the value of a 64-bit signed integer to an 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
Parametry
- value
- Int64
64-bitowa liczba całkowita ze znakiem.A 64-bit signed integer.
Zwraca
Wyjątki
Na platformie 32-bitowej value
jest zbyt duża, aby reprezentować jako IntPtr.On a 32-bit platform, value
is too large to represent as an IntPtr.
Zobacz też
Explicit(Int32 to IntPtr)
Konwertuje wartość 32-bitowej podpisanej liczby całkowitej na IntPtr.Converts the value of a 32-bit signed integer to an 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
Parametry
- value
- Int32
32-bitowa liczba całkowita ze znakiem.A 32-bit signed integer.
Zwraca
Zobacz też
Explicit(IntPtr to Int32)
Konwertuje wartość określonego IntPtr na 32-bitową liczbę całkowitą ze znakiem.Converts the value of the specified IntPtr to a 32-bit signed integer.
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
Parametry
- value
- IntPtr
Wskaźnik lub uchwyt do przekonwertowania.The pointer or handle to convert.
Zwraca
Zawartość value
.The contents of value
.
Wyjątki
Na platformie 64-bitowej wartość value
jest zbyt duża, aby reprezentować jako 32-bitową liczbę całkowitą ze znakiem.On a 64-bit platform, the value of value
is too large to represent as a 32-bit signed integer.
Uwagi
Wyjątek jest zgłaszany tylko wtedy, gdy wartość value
wymaga więcej bitów niż obsługiwana przez bieżącą platformę.An exception is only thrown if the value of value
requires more bits than the current platform supports.