Edytuj

Udostępnij za pośrednictwem


UIntPtr Constructors

Definition

Initializes a new instance of UIntPtr.

Overloads

UIntPtr(UInt32)

Initializes a new instance of the UIntPtr structure using the specified 32-bit unsigned integer.

UIntPtr(UInt64)

Initializes a new instance of UIntPtr using the specified 64-bit unsigned integer.

UIntPtr(Void*)

Initializes a new instance of UIntPtr using the specified pointer to an unspecified type.

UIntPtr(UInt32)

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

Initializes a new instance of the UIntPtr structure using the specified 32-bit unsigned integer.

public:
 UIntPtr(System::UInt32 value);
public UIntPtr (uint value);
new unativeint : uint32 -> unativeint
Public Sub New (value As UInteger)

Parameters

value
UInt32

A 32-bit unsigned integer.

Applies to

UIntPtr(UInt64)

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

Initializes a new instance of UIntPtr using the specified 64-bit unsigned integer.

public:
 UIntPtr(System::UInt64 value);
public UIntPtr (ulong value);
new unativeint : uint64 -> unativeint
Public Sub New (value As ULong)

Parameters

value
UInt64

A 64-bit unsigned integer.

Exceptions

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

Remarks

An exception is only thrown if the value of value requires more bits than the executing process supports.

Applies to

UIntPtr(Void*)

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

Important

This API is not CLS-compliant.

Initializes a new instance of UIntPtr using the specified pointer to an unspecified type.

public:
 UIntPtr(void* value);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public UIntPtr (void* value);
public UIntPtr (void* value);
[System.CLSCompliant(false)]
public UIntPtr (void* value);
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
new unativeint : nativeptr<unit> -> unativeint
new unativeint : nativeptr<unit> -> unativeint
[<System.CLSCompliant(false)>]
new unativeint : nativeptr<unit> -> unativeint

Parameters

value
Void*

A pointer to an unspecified type.

Attributes

See also

Applies to