UIntPtr.Explicit Betreiber

Definition

Überlädt

Explicit(UInt32 to UIntPtr)

Konvertiert den Wert einer 32-Bit-Ganzzahl ohne Vorzeichen in einen UIntPtr.

Explicit(UInt64 to UIntPtr)

Konvertiert den Wert einer ganzen 64-Bit-Zahl ohne Vorzeichen in einen UIntPtr.

Explicit(UIntPtr to UInt32)

Konvertiert den Wert des angegebenen UIntPtr in eine 32-Bit-Ganzzahl ohne Vorzeichen.

Explicit(UIntPtr to UInt64)

Konvertiert den Wert des angegebenen UIntPtr in eine ganze 64-Bit-Zahl ohne Vorzeichen.

Explicit(UIntPtr to Void*)

Konvertiert den Wert des angegebenen UIntPtr in einen Zeiger auf einen nicht angegebenen Typ.

Diese API ist nicht CLS-kompatibel.

Explicit(Void* to UIntPtr)

Konvertiert den angegebenen Zeiger auf einen nicht angegebenen Typ in einen UIntPtr.

Diese API ist nicht CLS-kompatibel.

Explicit(UInt32 to UIntPtr)

Konvertiert den Wert einer 32-Bit-Ganzzahl ohne Vorzeichen in einen UIntPtr.

public:
 static explicit operator UIntPtr(System::UInt32 value);
public static explicit operator UIntPtr (uint value);
static member op_Explicit : uint32 -> unativeint
Public Shared Narrowing Operator CType (value As UInteger) As UIntPtr

Parameter

value
UInt32

Eine 32-Bit-Ganzzahl ohne Vorzeichen.

Gibt zurück

UIntPtr

unativeint

Eine neue, mit UIntPtr initialisierte Instanz von value.

Weitere Informationen

Gilt für:

Explicit(UInt64 to UIntPtr)

Konvertiert den Wert einer ganzen 64-Bit-Zahl ohne Vorzeichen in einen UIntPtr.

public:
 static explicit operator UIntPtr(System::UInt64 value);
public static explicit operator UIntPtr (ulong value);
static member op_Explicit : uint64 -> unativeint
Public Shared Narrowing Operator CType (value As ULong) As UIntPtr

Parameter

value
UInt64

Eine 64-Bit-Ganzzahl ohne Vorzeichen.

Gibt zurück

UIntPtr

unativeint

Eine neue, mit UIntPtr initialisierte Instanz von value.

Ausnahmen

In einem 32-Bit-Prozess ist zu groß, value um als UIntPtrdarzustellen.

Weitere Informationen

Gilt für:

Explicit(UIntPtr to UInt32)

Konvertiert den Wert des angegebenen UIntPtr in eine 32-Bit-Ganzzahl ohne Vorzeichen.

public:
 static explicit operator System::UInt32(UIntPtr value);
public static explicit operator uint (UIntPtr value);
static member op_Explicit : unativeint -> uint32
Public Shared Narrowing Operator CType (value As UIntPtr) As UInteger

Parameter

value
UIntPtr

unativeint

Die zu konvertierende ganze Zahl ohne Vorzeichen.

Gibt zurück

Der Inhalt von value.

Ausnahmen

In einem 64-Bit-Prozess ist der Wert von value zu groß, um als 32-Bit-Ganzzahl ohne Vorzeichen darzustellen.

Hinweise

Eine Ausnahme wird nur ausgelöst, wenn der Wert von value mehr Bits erfordert, als der ausführende Prozess unterstützt.

Weitere Informationen

Gilt für:

Explicit(UIntPtr to UInt64)

Konvertiert den Wert des angegebenen UIntPtr in eine ganze 64-Bit-Zahl ohne Vorzeichen.

public:
 static explicit operator System::UInt64(UIntPtr value);
public static explicit operator ulong (UIntPtr value);
static member op_Explicit : unativeint -> uint64
Public Shared Narrowing Operator CType (value As UIntPtr) As ULong

Parameter

value
UIntPtr

unativeint

Die zu konvertierende ganze Zahl ohne Vorzeichen.

Gibt zurück

Der Inhalt von value.

Weitere Informationen

Gilt für:

Explicit(UIntPtr to Void*)

Wichtig

Diese API ist nicht CLS-kompatibel.

Konvertiert den Wert des angegebenen UIntPtr in einen Zeiger auf einen nicht angegebenen Typ.

Diese API ist nicht CLS-kompatibel.

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

Parameter

value
UIntPtr

unativeint

Die zu konvertierende ganze Zahl ohne Vorzeichen.

Gibt zurück

Void*

Der Inhalt von value.

Attribute

Weitere Informationen

Gilt für:

Explicit(Void* to UIntPtr)

Wichtig

Diese API ist nicht CLS-kompatibel.

Konvertiert den angegebenen Zeiger auf einen nicht angegebenen Typ in einen UIntPtr.

Diese API ist nicht CLS-kompatibel.

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

Parameter

value
Void*

Ein Zeiger auf einen nicht angegebenen Typ.

Gibt zurück

UIntPtr

unativeint

Eine neue, mit UIntPtr initialisierte Instanz von value.

Attribute

Weitere Informationen

Gilt für: