Upraviť

Zdieľať cez


UIntPtr.Explicit Operator

Definition

Overloads

Explicit(UInt32 to UIntPtr)

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

Explicit(UInt64 to UIntPtr)

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

Explicit(UIntPtr to UInt32)

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

Explicit(UIntPtr to UInt64)

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

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(Void* to UIntPtr)

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

This API is not CLS-compliant.

Explicit(UInt32 to UIntPtr)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

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

A 32-bit unsigned integer.

Returns

UIntPtr

unativeint

A new instance of UIntPtr initialized to value.

See also

Applies to

Explicit(UInt64 to UIntPtr)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

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

A 64-bit unsigned integer.

Returns

UIntPtr

unativeint

A new instance of UIntPtr initialized to value.

Exceptions

In a 32-bit process, value is too large to represent as an UIntPtr.

See also

Applies to

Explicit(UIntPtr to UInt32)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

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

unativeint

The unsigned integer to convert.

Returns

The contents of value.

Exceptions

In a 64-bit process, 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 executing process supports.

See also

Applies to

Explicit(UIntPtr to UInt64)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

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

unativeint

The unsigned integer to convert.

Returns

The contents of value.

See also

Applies to

Explicit(UIntPtr to Void*)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

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);
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>

Parameters

value
UIntPtr

unativeint

The unsigned integer to convert.

Returns

Void*

The contents of value.

Attributes

See also

Applies to

Explicit(Void* to UIntPtr)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

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);
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

Parameters

value
Void*

A pointer to an unspecified type.

Returns

UIntPtr

unativeint

A new instance of UIntPtr initialized to value.

Attributes

See also

Applies to