UIntPtr.Explicit 運算子

定義

多載

名稱 Description
Explicit(UInt32 to UIntPtr)

將一個 32 位元無符號整數 UIntPtr的值轉換為 。

Explicit(UInt64 to UIntPtr)

將 64 位元無符號整數 UIntPtr的值轉換為 。

Explicit(UIntPtr to UInt32)

將指定的 UIntPtr 值轉換為 32 位元的無符號整數。

Explicit(UIntPtr to UInt64)

將指定的 UIntPtr 值轉換為 64 位元無符號整數。

Explicit(UIntPtr to Void*)

將指定的 UIntPtr 值轉換為未指定型別的指標。

此 API 不符合 CLS 規範。

Explicit(Void* to UIntPtr)

將指定的指標轉換為未指定型態。UIntPtr

此 API 不符合 CLS 規範。

Explicit(UInt32 to UIntPtr)

來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs

將一個 32 位元無符號整數 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

參數

value
UInt32

32 位無符號整數。

傳回

UIntPtr

unativeint

一個新的實例 初始 UIntPtr 化為 value

另請參閱

適用於

Explicit(UInt64 to UIntPtr)

來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs

將 64 位元無符號整數 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

參數

value
UInt64

64 位無符號整數。

傳回

UIntPtr

unativeint

一個新的實例 初始 UIntPtr 化為 value

例外狀況

在 32 位元的程序中, 太大 value 無法表示為 UIntPtr

另請參閱

適用於

Explicit(UIntPtr to UInt32)

來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs

將指定的 UIntPtr 值轉換為 32 位元的無符號整數。

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

參數

value
UIntPtr

unativeint

未帶號整數要轉換。

傳回

內容 value

例外狀況

在 64 位元程序中,的 value 值太大,無法以 32 位元無號整數表示。

備註

只有當 的 value 值需要比執行程序支援的位元更多時,才會拋出例外。

另請參閱

適用於

Explicit(UIntPtr to UInt64)

來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs

將指定的 UIntPtr 值轉換為 64 位元無符號整數。

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

參數

value
UIntPtr

unativeint

未帶號整數要轉換。

傳回

內容 value

另請參閱

適用於

Explicit(UIntPtr to Void*)

來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs

重要

此 API 不符合 CLS 規範。

將指定的 UIntPtr 值轉換為未指定型別的指標。

此 API 不符合 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>

參數

value
UIntPtr

unativeint

未帶號整數要轉換。

傳回

Void*

內容 value

屬性

另請參閱

適用於

Explicit(Void* to UIntPtr)

來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs
來源:
UIntPtr.cs

重要

此 API 不符合 CLS 規範。

將指定的指標轉換為未指定型態。UIntPtr

此 API 不符合 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

參數

value
Void*

一個指向未指定型態的指標。

傳回

UIntPtr

unativeint

一個新的實例 初始 UIntPtr 化為 value

屬性

另請參閱

適用於