UIntPtr.Explicit UIntPtr.Explicit UIntPtr.Explicit UIntPtr.Explicit Operator

Definition

Overloads

Explicit(Void* to UIntPtr) Explicit(Void* to UIntPtr) Explicit(Void* to UIntPtr)

Converts the specified pointer to an unspecified type to an UIntPtr.

This API is not CLS-compliant.

Explicit(UIntPtr to UInt64) Explicit(UIntPtr to UInt64) Explicit(UIntPtr to UInt64) Explicit(UIntPtr to UInt64)

Converts the value of the specified UIntPtr to a 64-bit unsigned integer.

Explicit(UIntPtr to Void*) Explicit(UIntPtr to Void*) Explicit(UIntPtr to Void*)

Converts the value of the specified UIntPtr to a pointer to an unspecified type.

This API is not CLS-compliant.

Explicit(UInt64 to UIntPtr) Explicit(UInt64 to UIntPtr) Explicit(UInt64 to UIntPtr) Explicit(UInt64 to UIntPtr)

Converts the value of a 64-bit unsigned integer to an UIntPtr.

Explicit(UInt32 to UIntPtr) Explicit(UInt32 to UIntPtr) Explicit(UInt32 to UIntPtr) Explicit(UInt32 to UIntPtr)

Converts the value of a 32-bit unsigned integer to an UIntPtr.

Explicit(UIntPtr to UInt32) Explicit(UIntPtr to UInt32) Explicit(UIntPtr to UInt32) Explicit(UIntPtr to UInt32)

Converts the value of the specified UIntPtr to a 32-bit unsigned integer.

Explicit(Void* to UIntPtr) Explicit(Void* to UIntPtr) Explicit(Void* to UIntPtr)

Important

This API is not CLS-compliant.

Converts the specified pointer to an unspecified type to an UIntPtr.

This API is not CLS-compliant.

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

Parameters

value
Void*

A pointer to an unspecified type.

Returns

A new instance of UIntPtr initialized to value.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

See also

Explicit(UIntPtr to UInt64) Explicit(UIntPtr to UInt64) Explicit(UIntPtr to UInt64) Explicit(UIntPtr to UInt64)

Converts the value of the specified UIntPtr to a 64-bit unsigned integer.

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

Parameters

value
UIntPtr UIntPtr UIntPtr UIntPtr

The pointer or handle to convert.

Returns

The contents of value.

See also

Explicit(UIntPtr to Void*) Explicit(UIntPtr to Void*) Explicit(UIntPtr to Void*)

Important

This API is not CLS-compliant.

Converts the value of the specified UIntPtr to a pointer to an unspecified type.

This API is not CLS-compliant.

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

Parameters

value
UIntPtr UIntPtr UIntPtr UIntPtr

The pointer or handle to convert.

Returns

Void*

The contents of value.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

See also

Explicit(UInt64 to UIntPtr) Explicit(UInt64 to UIntPtr) Explicit(UInt64 to UIntPtr) Explicit(UInt64 to UIntPtr)

Converts the value of a 64-bit unsigned integer to an 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

Parameters

value
UInt64 UInt64 UInt64 UInt64

A 64-bit unsigned integer.

Returns

A new instance of UIntPtr initialized to value.

Exceptions

On a 32-bit platform, value is too large to represent as an UIntPtr.

See also

Explicit(UInt32 to UIntPtr) Explicit(UInt32 to UIntPtr) Explicit(UInt32 to UIntPtr) Explicit(UInt32 to UIntPtr)

Converts the value of a 32-bit unsigned integer to an 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

Parameters

value
UInt32 UInt32 UInt32 UInt32

A 32-bit unsigned integer.

Returns

A new instance of UIntPtr initialized to value.

See also

Explicit(UIntPtr to UInt32) Explicit(UIntPtr to UInt32) Explicit(UIntPtr to UInt32) Explicit(UIntPtr to UInt32)

Converts the value of the specified UIntPtr to a 32-bit unsigned integer.

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

Parameters

value
UIntPtr UIntPtr UIntPtr UIntPtr

The pointer or handle to convert.

Returns

The contents of value.

Exceptions

On a 64-bit platform, the value of value is too large to represent as a 32-bit unsigned integer.

Remarks

An exception is only thrown if the value of value requires more bits than the current platform supports.

See also

Applies to