UIntPtr.Explicit Operator

Definition

Överlagringar

Name Description
Explicit(UInt32 to UIntPtr)

Konverterar värdet för ett 32-bitars osignerat heltal till ett UIntPtr.

Explicit(UInt64 to UIntPtr)

Konverterar värdet för ett 64-bitars osignerat heltal till ett UIntPtr.

Explicit(UIntPtr to UInt32)

Konverterar värdet för det angivna UIntPtr till ett 32-bitars osignerat heltal.

Explicit(UIntPtr to UInt64)

Konverterar värdet för det angivna UIntPtr till ett 64-bitars osignerat heltal.

Explicit(UIntPtr to Void*)

Konverterar värdet för den angivna UIntPtr till en pekare till en ospecificerad typ.

Detta API uppfyller inte CLS.

Explicit(Void* to UIntPtr)

Konverterar den angivna pekaren till en ospecificerad typ till en UIntPtr.

Detta API uppfyller inte CLS.

Explicit(UInt32 to UIntPtr)

Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs

Konverterar värdet för ett 32-bitars osignerat heltal till ett 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

Parametrar

value
UInt32

Ett 32-bitars osignerat heltal.

Returer

UIntPtr

unativeint

En ny instans av UIntPtr initierad till value.

Se även

Gäller för

Explicit(UInt64 to UIntPtr)

Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs

Konverterar värdet för ett 64-bitars osignerat heltal till ett 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

Parametrar

value
UInt64

Ett 64-bitars osignerat heltal.

Returer

UIntPtr

unativeint

En ny instans av UIntPtr initierad till value.

Undantag

I en 32-bitarsprocess value är den för stor för att representeras som en UIntPtr.

Se även

Gäller för

Explicit(UIntPtr to UInt32)

Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs

Konverterar värdet för det angivna UIntPtr till ett 32-bitars osignerat heltal.

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

Parametrar

value
UIntPtr

unativeint

Det osignerade heltal som ska konverteras.

Returer

Innehållet i value.

Undantag

I en 64-bitarsprocess är värdet value för för stort för att representeras som ett 32-bitars osignerat heltal.

Kommentarer

Ett undantag utlöses endast om värdet value för kräver fler bitar än vad den kör processen stöder.

Se även

Gäller för

Explicit(UIntPtr to UInt64)

Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs

Konverterar värdet för det angivna UIntPtr till ett 64-bitars osignerat heltal.

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

Parametrar

value
UIntPtr

unativeint

Det osignerade heltal som ska konverteras.

Returer

Innehållet i value.

Se även

Gäller för

Explicit(UIntPtr to Void*)

Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs

Viktigt!

Detta API uppfyller inte CLS.

Konverterar värdet för den angivna UIntPtr till en pekare till en ospecificerad typ.

Detta API uppfyller inte CLS.

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>

Parametrar

value
UIntPtr

unativeint

Det osignerade heltal som ska konverteras.

Returer

Void*

Innehållet i value.

Attribut

Se även

Gäller för

Explicit(Void* to UIntPtr)

Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs
Källa:
UIntPtr.cs

Viktigt!

Detta API uppfyller inte CLS.

Konverterar den angivna pekaren till en ospecificerad typ till en UIntPtr.

Detta API uppfyller inte CLS.

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

Parametrar

value
Void*

En pekare till en ospecificerad typ.

Returer

UIntPtr

unativeint

En ny instans av UIntPtr initierad till value.

Attribut

Se även

Gäller för