UIntPtr Struktura

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Reprezentuje niepodpisaną liczbę całkowitą, w której szerokość bitów jest taka sama jak wskaźnik.

public value class UIntPtr
public value class UIntPtr : IComparable, IComparable<UIntPtr>, IEquatable<UIntPtr>, IFormattable, System::Runtime::Serialization::ISerializable
public value class UIntPtr : IComparable, IComparable<UIntPtr>, IEquatable<UIntPtr>, ISpanFormattable, System::Runtime::Serialization::ISerializable
public value class UIntPtr : IComparable<UIntPtr>, IEquatable<UIntPtr>, IParsable<UIntPtr>, ISpanParsable<UIntPtr>, System::Numerics::IAdditionOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IAdditiveIdentity<UIntPtr, UIntPtr>, System::Numerics::IBinaryInteger<UIntPtr>, System::Numerics::IBinaryNumber<UIntPtr>, System::Numerics::IBitwiseOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IComparisonOperators<UIntPtr, UIntPtr, bool>, System::Numerics::IDecrementOperators<UIntPtr>, System::Numerics::IDivisionOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IEqualityOperators<UIntPtr, UIntPtr, bool>, System::Numerics::IIncrementOperators<UIntPtr>, System::Numerics::IMinMaxValue<UIntPtr>, System::Numerics::IModulusOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IMultiplicativeIdentity<UIntPtr, UIntPtr>, System::Numerics::IMultiplyOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::INumber<UIntPtr>, System::Numerics::INumberBase<UIntPtr>, System::Numerics::IShiftOperators<UIntPtr, int, UIntPtr>, System::Numerics::ISubtractionOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IUnaryNegationOperators<UIntPtr, UIntPtr>, System::Numerics::IUnaryPlusOperators<UIntPtr, UIntPtr>, System::Numerics::IUnsignedNumber<UIntPtr>, System::Runtime::Serialization::ISerializable
public value class UIntPtr : IComparable<UIntPtr>, IEquatable<UIntPtr>, IParsable<UIntPtr>, ISpanParsable<UIntPtr>, IUtf8SpanParsable<UIntPtr>, System::Numerics::IAdditionOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IAdditiveIdentity<UIntPtr, UIntPtr>, System::Numerics::IBinaryInteger<UIntPtr>, System::Numerics::IBinaryNumber<UIntPtr>, System::Numerics::IBitwiseOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IComparisonOperators<UIntPtr, UIntPtr, bool>, System::Numerics::IDecrementOperators<UIntPtr>, System::Numerics::IDivisionOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IEqualityOperators<UIntPtr, UIntPtr, bool>, System::Numerics::IIncrementOperators<UIntPtr>, System::Numerics::IMinMaxValue<UIntPtr>, System::Numerics::IModulusOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IMultiplicativeIdentity<UIntPtr, UIntPtr>, System::Numerics::IMultiplyOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::INumber<UIntPtr>, System::Numerics::INumberBase<UIntPtr>, System::Numerics::IShiftOperators<UIntPtr, int, UIntPtr>, System::Numerics::ISubtractionOperators<UIntPtr, UIntPtr, UIntPtr>, System::Numerics::IUnaryNegationOperators<UIntPtr, UIntPtr>, System::Numerics::IUnaryPlusOperators<UIntPtr, UIntPtr>, System::Numerics::IUnsignedNumber<UIntPtr>, System::Runtime::Serialization::ISerializable
public value class UIntPtr : IEquatable<UIntPtr>, System::Runtime::Serialization::ISerializable
public value class UIntPtr : System::Runtime::Serialization::ISerializable
[System.CLSCompliant(false)]
public struct UIntPtr
[System.CLSCompliant(false)]
public readonly struct UIntPtr : IComparable, IComparable<UIntPtr>, IEquatable<UIntPtr>, IFormattable, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
public readonly struct UIntPtr : IComparable, IComparable<UIntPtr>, IEquatable<UIntPtr>, ISpanFormattable, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
public readonly struct UIntPtr : IComparable<UIntPtr>, IEquatable<UIntPtr>, IParsable<UIntPtr>, ISpanParsable<UIntPtr>, System.Numerics.IAdditionOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IAdditiveIdentity<UIntPtr,UIntPtr>, System.Numerics.IBinaryInteger<UIntPtr>, System.Numerics.IBinaryNumber<UIntPtr>, System.Numerics.IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IComparisonOperators<UIntPtr,UIntPtr,bool>, System.Numerics.IDecrementOperators<UIntPtr>, System.Numerics.IDivisionOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IEqualityOperators<UIntPtr,UIntPtr,bool>, System.Numerics.IIncrementOperators<UIntPtr>, System.Numerics.IMinMaxValue<UIntPtr>, System.Numerics.IModulusOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IMultiplicativeIdentity<UIntPtr,UIntPtr>, System.Numerics.IMultiplyOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.INumber<UIntPtr>, System.Numerics.INumberBase<UIntPtr>, System.Numerics.IShiftOperators<UIntPtr,int,UIntPtr>, System.Numerics.ISubtractionOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IUnaryNegationOperators<UIntPtr,UIntPtr>, System.Numerics.IUnaryPlusOperators<UIntPtr,UIntPtr>, System.Numerics.IUnsignedNumber<UIntPtr>, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
public readonly struct UIntPtr : IComparable<UIntPtr>, IEquatable<UIntPtr>, IParsable<UIntPtr>, ISpanParsable<UIntPtr>, IUtf8SpanParsable<UIntPtr>, System.Numerics.IAdditionOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IAdditiveIdentity<UIntPtr,UIntPtr>, System.Numerics.IBinaryInteger<UIntPtr>, System.Numerics.IBinaryNumber<UIntPtr>, System.Numerics.IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IComparisonOperators<UIntPtr,UIntPtr,bool>, System.Numerics.IDecrementOperators<UIntPtr>, System.Numerics.IDivisionOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IEqualityOperators<UIntPtr,UIntPtr,bool>, System.Numerics.IIncrementOperators<UIntPtr>, System.Numerics.IMinMaxValue<UIntPtr>, System.Numerics.IModulusOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IMultiplicativeIdentity<UIntPtr,UIntPtr>, System.Numerics.IMultiplyOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.INumber<UIntPtr>, System.Numerics.INumberBase<UIntPtr>, System.Numerics.IShiftOperators<UIntPtr,int,UIntPtr>, System.Numerics.ISubtractionOperators<UIntPtr,UIntPtr,UIntPtr>, System.Numerics.IUnaryNegationOperators<UIntPtr,UIntPtr>, System.Numerics.IUnaryPlusOperators<UIntPtr,UIntPtr>, System.Numerics.IUnsignedNumber<UIntPtr>, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
public struct UIntPtr : IEquatable<UIntPtr>, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
public readonly struct UIntPtr : IEquatable<UIntPtr>, System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
[System.Serializable]
public struct UIntPtr : System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct UIntPtr : System.Runtime.Serialization.ISerializable
[System.CLSCompliant(false)]
public struct UIntPtr : System.Runtime.Serialization.ISerializable
[<System.CLSCompliant(false)>]
type unativeint = struct
[<System.CLSCompliant(false)>]
type unativeint = struct
    interface IFormattable
    interface ISerializable
[<System.CLSCompliant(false)>]
type unativeint = struct
    interface ISpanFormattable
    interface IFormattable
    interface ISerializable
[<System.CLSCompliant(false)>]
type unativeint = struct
    interface IFormattable
    interface IParsable<unativeint>
    interface ISpanFormattable
    interface ISpanParsable<unativeint>
    interface IAdditionOperators<unativeint, unativeint, unativeint>
    interface IAdditiveIdentity<unativeint, unativeint>
    interface IBinaryInteger<unativeint>
    interface IBinaryNumber<unativeint>
    interface IBitwiseOperators<unativeint, unativeint, unativeint>
    interface IComparisonOperators<unativeint, unativeint, bool>
    interface IEqualityOperators<unativeint, unativeint, bool>
    interface IDecrementOperators<unativeint>
    interface IDivisionOperators<unativeint, unativeint, unativeint>
    interface IIncrementOperators<unativeint>
    interface IModulusOperators<unativeint, unativeint, unativeint>
    interface IMultiplicativeIdentity<unativeint, unativeint>
    interface IMultiplyOperators<unativeint, unativeint, unativeint>
    interface INumber<unativeint>
    interface INumberBase<unativeint>
    interface ISubtractionOperators<unativeint, unativeint, unativeint>
    interface IUnaryNegationOperators<unativeint, unativeint>
    interface IUnaryPlusOperators<unativeint, unativeint>
    interface IShiftOperators<unativeint, int, unativeint>
    interface IMinMaxValue<unativeint>
    interface IUnsignedNumber<unativeint>
    interface ISerializable
[<System.CLSCompliant(false)>]
type unativeint = struct
    interface IFormattable
    interface IParsable<unativeint>
    interface ISpanFormattable
    interface ISpanParsable<unativeint>
    interface IAdditionOperators<unativeint, unativeint, unativeint>
    interface IAdditiveIdentity<unativeint, unativeint>
    interface IBinaryInteger<unativeint>
    interface IBinaryNumber<unativeint>
    interface IBitwiseOperators<unativeint, unativeint, unativeint>
    interface IComparisonOperators<unativeint, unativeint, bool>
    interface IEqualityOperators<unativeint, unativeint, bool>
    interface IDecrementOperators<unativeint>
    interface IDivisionOperators<unativeint, unativeint, unativeint>
    interface IIncrementOperators<unativeint>
    interface IModulusOperators<unativeint, unativeint, unativeint>
    interface IMultiplicativeIdentity<unativeint, unativeint>
    interface IMultiplyOperators<unativeint, unativeint, unativeint>
    interface INumber<unativeint>
    interface INumberBase<unativeint>
    interface ISubtractionOperators<unativeint, unativeint, unativeint>
    interface IUnaryNegationOperators<unativeint, unativeint>
    interface IUnaryPlusOperators<unativeint, unativeint>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<unativeint>
    interface IShiftOperators<unativeint, int, unativeint>
    interface IMinMaxValue<unativeint>
    interface IUnsignedNumber<unativeint>
    interface ISerializable
[<System.CLSCompliant(false)>]
type unativeint = struct
    interface IFormattable
    interface IParsable<unativeint>
    interface ISpanFormattable
    interface ISpanParsable<unativeint>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<unativeint>
    interface IAdditionOperators<unativeint, unativeint, unativeint>
    interface IAdditiveIdentity<unativeint, unativeint>
    interface IBinaryInteger<unativeint>
    interface IBinaryNumber<unativeint>
    interface IBitwiseOperators<unativeint, unativeint, unativeint>
    interface IComparisonOperators<unativeint, unativeint, bool>
    interface IEqualityOperators<unativeint, unativeint, bool>
    interface IDecrementOperators<unativeint>
    interface IDivisionOperators<unativeint, unativeint, unativeint>
    interface IIncrementOperators<unativeint>
    interface IModulusOperators<unativeint, unativeint, unativeint>
    interface IMultiplicativeIdentity<unativeint, unativeint>
    interface IMultiplyOperators<unativeint, unativeint, unativeint>
    interface INumber<unativeint>
    interface INumberBase<unativeint>
    interface ISubtractionOperators<unativeint, unativeint, unativeint>
    interface IUnaryNegationOperators<unativeint, unativeint>
    interface IUnaryPlusOperators<unativeint, unativeint>
    interface IShiftOperators<unativeint, int, unativeint>
    interface IMinMaxValue<unativeint>
    interface IUnsignedNumber<unativeint>
    interface ISerializable
[<System.CLSCompliant(false)>]
type unativeint = struct
    interface ISerializable
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type unativeint = struct
    interface ISerializable
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type unativeint = struct
    interface ISerializable
Public Structure UIntPtr
Public Structure UIntPtr
Implements IComparable, IComparable(Of UIntPtr), IEquatable(Of UIntPtr), IFormattable, ISerializable
Public Structure UIntPtr
Implements IComparable, IComparable(Of UIntPtr), IEquatable(Of UIntPtr), ISerializable, ISpanFormattable
Public Structure UIntPtr
Implements IAdditionOperators(Of UIntPtr, UIntPtr, UIntPtr), IAdditiveIdentity(Of UIntPtr, UIntPtr), IBinaryInteger(Of UIntPtr), IBinaryNumber(Of UIntPtr), IBitwiseOperators(Of UIntPtr, UIntPtr, UIntPtr), IComparable(Of UIntPtr), IComparisonOperators(Of UIntPtr, UIntPtr, Boolean), IDecrementOperators(Of UIntPtr), IDivisionOperators(Of UIntPtr, UIntPtr, UIntPtr), IEqualityOperators(Of UIntPtr, UIntPtr, Boolean), IEquatable(Of UIntPtr), IIncrementOperators(Of UIntPtr), IMinMaxValue(Of UIntPtr), IModulusOperators(Of UIntPtr, UIntPtr, UIntPtr), IMultiplicativeIdentity(Of UIntPtr, UIntPtr), IMultiplyOperators(Of UIntPtr, UIntPtr, UIntPtr), INumber(Of UIntPtr), INumberBase(Of UIntPtr), IParsable(Of UIntPtr), ISerializable, IShiftOperators(Of UIntPtr, Integer, UIntPtr), ISpanParsable(Of UIntPtr), ISubtractionOperators(Of UIntPtr, UIntPtr, UIntPtr), IUnaryNegationOperators(Of UIntPtr, UIntPtr), IUnaryPlusOperators(Of UIntPtr, UIntPtr), IUnsignedNumber(Of UIntPtr)
Public Structure UIntPtr
Implements IAdditionOperators(Of UIntPtr, UIntPtr, UIntPtr), IAdditiveIdentity(Of UIntPtr, UIntPtr), IBinaryInteger(Of UIntPtr), IBinaryNumber(Of UIntPtr), IBitwiseOperators(Of UIntPtr, UIntPtr, UIntPtr), IComparable(Of UIntPtr), IComparisonOperators(Of UIntPtr, UIntPtr, Boolean), IDecrementOperators(Of UIntPtr), IDivisionOperators(Of UIntPtr, UIntPtr, UIntPtr), IEqualityOperators(Of UIntPtr, UIntPtr, Boolean), IEquatable(Of UIntPtr), IIncrementOperators(Of UIntPtr), IMinMaxValue(Of UIntPtr), IModulusOperators(Of UIntPtr, UIntPtr, UIntPtr), IMultiplicativeIdentity(Of UIntPtr, UIntPtr), IMultiplyOperators(Of UIntPtr, UIntPtr, UIntPtr), INumber(Of UIntPtr), INumberBase(Of UIntPtr), IParsable(Of UIntPtr), ISerializable, IShiftOperators(Of UIntPtr, Integer, UIntPtr), ISpanParsable(Of UIntPtr), ISubtractionOperators(Of UIntPtr, UIntPtr, UIntPtr), IUnaryNegationOperators(Of UIntPtr, UIntPtr), IUnaryPlusOperators(Of UIntPtr, UIntPtr), IUnsignedNumber(Of UIntPtr), IUtf8SpanParsable(Of UIntPtr)
Public Structure UIntPtr
Implements IEquatable(Of UIntPtr), ISerializable
Public Structure UIntPtr
Implements ISerializable
Dziedziczenie
UIntPtr
Atrybuty
Implementuje
IComparable IComparable<UIntPtr> IEquatable<UIntPtr> IFormattable ISerializable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<UIntPtr> IParsable<TSelf> ISpanParsable<UIntPtr> ISpanParsable<TSelf> IAdditionOperators<UIntPtr,UIntPtr,UIntPtr> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<UIntPtr,UIntPtr> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<UIntPtr> IBinaryNumber<UIntPtr> IBinaryNumber<TSelf> IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<UIntPtr,UIntPtr,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<UIntPtr> IDecrementOperators<TSelf> IDivisionOperators<UIntPtr,UIntPtr,UIntPtr> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<UIntPtr,UIntPtr,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<UIntPtr> IIncrementOperators<TSelf> IMinMaxValue<UIntPtr> IModulusOperators<UIntPtr,UIntPtr,UIntPtr> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<UIntPtr,UIntPtr> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<UIntPtr,UIntPtr,UIntPtr> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<UIntPtr> INumber<TSelf> INumberBase<UIntPtr> INumberBase<TSelf> IShiftOperators<UIntPtr,Int32,UIntPtr> IShiftOperators<TSelf,Int32,TSelf> ISubtractionOperators<UIntPtr,UIntPtr,UIntPtr> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<UIntPtr,UIntPtr> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<UIntPtr,UIntPtr> IUnaryPlusOperators<TSelf,TSelf> IUnsignedNumber<UIntPtr> IUtf8SpanFormattable IUtf8SpanParsable<UIntPtr> IUtf8SpanParsable<TSelf>

Uwagi

Typ UIntPtr jest przeznaczony do liczby całkowitej, której rozmiar jest taki sam jak wskaźnik. Oznacza to, że wystąpienie tego typu ma być 32-bitowe w procesie 32-bitowym i 64-bitowym w procesie 64-bitowym.

Typ UIntPtr może być używany przez języki, które obsługują wskaźniki, oraz jako typowy sposób odwoływania się do danych między językami, które nie obsługują wskaźników. UIntPtr obiekty mogą być również używane do przechowywania uchwytów.

Uwaga

Użycie UIntPtr jako wskaźnika lub uchwytu jest podatne na błędy i niebezpieczne. Jest to po prostu typ liczby całkowitej, który może być używany jako format wymiany wskaźników i uchwytów z powodu tego samego rozmiaru. Poza określonymi wymaganiami wymiany, takimi jak przekazywanie danych do języka, który nie obsługuje wskaźników, należy użyć poprawnie wpisanego wskaźnika do reprezentowania wskaźników i SafeHandle służyć do reprezentowania dojść.

Ten typ implementuje element ISerializable. W wersjach .NET 5 i nowszych ten typ implementuje IFormattable również interfejsy. W wersjach .NET 7 i nowszych ten typ implementuje IBinaryInteger<TSelf>również interfejsy , IMinMaxValue<TSelf>i IUnsignedNumber<TSelf> .

W języku C# począwszy od wersji 9.0 można użyć wbudowanego nuint typu do zdefiniowania liczb całkowitych o rozmiarze natywnym. Ten typ jest reprezentowany przez UIntPtr typ wewnętrznie i zapewnia operacje i konwersje, które są odpowiednie dla typów całkowitych. Aby uzyskać więcej informacji, zobacz nint i nuint types (Typy nint i nuint).

W języku C# począwszy od wersji 11 i w przypadku określania wartości docelowej środowiska uruchomieniowego nuint .NET 7 lub nowszego alias jest aliasem uintUIntPtr dla UInt32programu .

Konstruktory

UIntPtr(UInt32)

Inicjuje nowe wystąpienie UIntPtr struktury przy użyciu określonej 32-bitowej liczby całkowitej bez znaku.

UIntPtr(UInt64)

Inicjuje nowe wystąpienie UIntPtr przy użyciu określonej 64-bitowej liczby całkowitej bez znaku.

UIntPtr(Void*)

Inicjuje nowe wystąpienie UIntPtr użycia określonego wskaźnika do nieokreślonego typu.

Pola

Zero

Pole tylko do odczytu, które reprezentuje niepodpisaną liczbę całkowitą zainicjowaną do zera.

Właściwości

MaxValue

Reprezentuje największą możliwą wartość .UIntPtr

MinValue

Reprezentuje najmniejszą możliwą wartość .UIntPtr

Size

Pobiera rozmiar tego wystąpienia.

Metody

Add(UIntPtr, Int32)

Dodaje przesunięcie do niepodpisanej liczby całkowitej.

Clamp(UIntPtr, UIntPtr, UIntPtr)

Zaciska wartość do wartości minimalnej i maksymalnej.

CompareTo(Object)

Porównuje bieżące wystąpienie z innym obiektem tego samego typu i zwraca liczbę całkowitą, która wskazuje, czy bieżące wystąpienie poprzedza, następuje po lub występuje w tym samym położeniu, co inny obiekt w porządku sortowania.

CompareTo(UIntPtr)

Porównuje bieżące wystąpienie z innym obiektem tego samego typu i zwraca liczbę całkowitą, która wskazuje, czy bieżące wystąpienie poprzedza, następuje po lub występuje w tym samym położeniu, co inny obiekt w porządku sortowania.

CreateChecked<TOther>(TOther)

Tworzy wystąpienie bieżącego typu na podstawie wartości, zgłaszając wyjątek przepełnienia dla wszystkich wartości, które wykraczają poza dopuszczalny zakres bieżącego typu.

CreateSaturating<TOther>(TOther)

Tworzy wystąpienie bieżącego typu na podstawie wartości, usytując wszystkie wartości, które wykraczają poza reprezentowany zakres bieżącego typu.

CreateTruncating<TOther>(TOther)

Tworzy wystąpienie bieżącego typu na podstawie wartości, obcinając wszystkie wartości, które znajdują się poza dopuszczalnym zakresem bieżącego typu.

DivRem(UIntPtr, UIntPtr)

Oblicza iloraz i pozostałą część dwóch wartości.

Equals(Object)

Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.

Equals(UIntPtr)

Wskazuje, czy bieżący obiekt jest równy innemu obiektowi tego samego typu.

GetHashCode()

Zwraca wartość skrótu dla tego wystąpienia.

IsEvenInteger(UIntPtr)

Określa, czy wartość reprezentuje liczbę całkowitą parzystą.

IsOddInteger(UIntPtr)

Określa, czy wartość reprezentuje nieparzystą liczbę całkowitą.

IsPow2(UIntPtr)

Określa, czy wartość jest potęgą dwóch.

LeadingZeroCount(UIntPtr)

Oblicza liczbę zer wiodących w wartości.

Log2(UIntPtr)

Oblicza dziennik2 wartości.

Max(UIntPtr, UIntPtr)

Porównuje dwie wartości do obliczeń, które są większe.

Min(UIntPtr, UIntPtr)

Porównuje dwie wartości do obliczeń, które są mniejsze.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Analizuje zakres znaków UTF-8 w wartości.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analizuje zakres znaków UTF-8 w wartości.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Analizuje zakres znaków w wartości.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Konwertuje zakres znaków tylko do odczytu reprezentujący liczbę w opcjonalnie określonym stylu i opcjonalnie określony format specyficzny dla kultury do jego niepodpisanej natywnej liczby całkowitej równoważnej.

Parse(String)

Konwertuje reprezentację ciągu liczby na niepodpisaną natywną liczbę całkowitą równoważną.

Parse(String, IFormatProvider)

Konwertuje reprezentację ciągu liczby w określonym formacie specyficznym dla kultury na jego niepodpisaną natywną liczbę całkowitą równoważną.

Parse(String, NumberStyles)

Konwertuje reprezentację ciągu liczby w określonym stylu na jego niepodpisaną natywną liczbę całkowitą równoważną.

Parse(String, NumberStyles, IFormatProvider)

Konwertuje reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na jego niepodpisaną natywną liczbę całkowitą równoważną.

PopCount(UIntPtr)

Oblicza liczbę bitów ustawionych w wartości.

RotateLeft(UIntPtr, Int32)

Obraca wartość pozostawioną przez daną kwotę.

RotateRight(UIntPtr, Int32)

Obraca wartość w prawo o daną kwotę.

Sign(UIntPtr)

Oblicza znak wartości.

Subtract(UIntPtr, Int32)

Odejmuje przesunięcie od niepodpisanej liczby całkowitej.

ToPointer()

Konwertuje wartość tego wystąpienia na wskaźnik do nieokreślonego typu.

ToString()

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu.

ToString(IFormatProvider)

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu przy użyciu podanego formatu i informacji specyficznych dla kultury.

ToString(String)

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu przy użyciu podanego formatu.

ToString(String, IFormatProvider)

Formatuje wartość bieżącego wystąpienia przy użyciu określonego formatu.

ToUInt32()

Konwertuje wartość tego wystąpienia na 32-bitową niepodpisaną liczbę całkowitą.

ToUInt64()

Konwertuje wartość tego wystąpienia na 64-bitową niepodpisaną liczbę całkowitą.

TrailingZeroCount(UIntPtr)

Oblicza liczbę końcowych zer w wartości.

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Próbuje sformatować wartość bieżącego wystąpienia jako UTF-8 w podanym zakresie bajtów.

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Próbuje sformatować wartość bieżącego wystąpienia w podanym zakresie znaków.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UIntPtr)

Próbuje przeanalizować zakres znaków UTF-8 w wartość.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UIntPtr)

Próbuje przeanalizować zakres znaków UTF-8 w wartość.

TryParse(ReadOnlySpan<Byte>, UIntPtr)

Próbuje przekonwertować zakres znaków UTF-8 zawierający reprezentację ciągu liczby na odpowiednik niepodpisanej liczby całkowitej.

TryParse(ReadOnlySpan<Char>, IFormatProvider, UIntPtr)

Próbuje przeanalizować ciąg w wartość.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UIntPtr)

Konwertuje zakres znaków tylko do odczytu w określonym stylu i formacie specyficznym dla kultury na jego niepodpisaną natywną liczbę całkowitą. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

TryParse(ReadOnlySpan<Char>, UIntPtr)

Konwertuje zakres znaków tylko do odczytu na niepodpisaną natywną liczbę całkowitą równoważną. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

TryParse(String, IFormatProvider, UIntPtr)

Próbuje przeanalizować ciąg w wartość.

TryParse(String, NumberStyles, IFormatProvider, UIntPtr)

Konwertuje reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik niepodpisanej liczby całkowitej natywnej. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

TryParse(String, UIntPtr)

Konwertuje reprezentację ciągu liczby na niepodpisaną natywną liczbę całkowitą równoważną. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

Operatory

Addition(UIntPtr, Int32)

Dodaje przesunięcie do niepodpisanej liczby całkowitej.

Equality(UIntPtr, UIntPtr)

Określa, czy dwa określone wystąpienia adresu UIntPtr są takie same.

Explicit(UInt32 to UIntPtr)

Konwertuje wartość 32-bitowej liczby całkowitej bez znaku na wartość UIntPtr.

Explicit(UInt64 to UIntPtr)

Konwertuje wartość 64-bitowej liczby całkowitej bez znaku na wartość UIntPtr.

Explicit(UIntPtr to UInt32)

Konwertuje wartość określonej UIntPtr na 32-bitową niepodpisaną liczbę całkowitą.

Explicit(UIntPtr to UInt64)

Konwertuje wartość określonej UIntPtr na 64-bitową liczbę całkowitą bez znaku.

Explicit(UIntPtr to Void*)

Konwertuje wartość określonego UIntPtr wskaźnika na nieokreślony typ.

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Explicit(Void* to UIntPtr)

Konwertuje określony wskaźnik na nieokreślony typ na .UIntPtr

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Inequality(UIntPtr, UIntPtr)

Określa, czy dwa określone wystąpienia elementu UIntPtr nie są takie same.

Subtraction(UIntPtr, Int32)

Odejmuje przesunięcie od niepodpisanej liczby całkowitej.

Jawne implementacje interfejsu

IAdditionOperators<UIntPtr,UIntPtr,UIntPtr>.Addition(UIntPtr, UIntPtr)

Dodaje dwie wartości w celu obliczenia ich sumy.

IAdditionOperators<UIntPtr,UIntPtr,UIntPtr>.CheckedAddition(UIntPtr, UIntPtr)

Dodaje dwie wartości w celu obliczenia ich sumy.

IAdditiveIdentity<UIntPtr,UIntPtr>.AdditiveIdentity

Pobiera tożsamość addytywnego bieżącego typu.

IBinaryInteger<UIntPtr>.GetByteCount()

Pobiera liczbę bajtów, które zostaną zapisane jako część .TryWriteLittleEndian(Span<Byte>, Int32)

IBinaryInteger<UIntPtr>.GetShortestBitLength()

Pobiera długość (w bitach) najkrótszej reprezentacji wartości bieżącej.

IBinaryInteger<UIntPtr>.TryReadBigEndian(ReadOnlySpan<Byte>, Boolean, UIntPtr)

Reprezentuje niepodpisaną liczbę całkowitą, w której szerokość bitów jest taka sama jak wskaźnik.

IBinaryInteger<UIntPtr>.TryReadLittleEndian(ReadOnlySpan<Byte>, Boolean, UIntPtr)

Reprezentuje niepodpisaną liczbę całkowitą, w której szerokość bitów jest taka sama jak wskaźnik.

IBinaryInteger<UIntPtr>.TryWriteBigEndian(Span<Byte>, Int32)

Próbuje zapisać bieżącą wartość w formacie big-endian dla danego zakresu.

IBinaryInteger<UIntPtr>.TryWriteLittleEndian(Span<Byte>, Int32)

Próbuje zapisać bieżącą wartość w formacie little-endian do danego zakresu.

IBinaryNumber<UIntPtr>.AllBitsSet

Pobiera wystąpienie typu binarnego, w którym są ustawione wszystkie bity.

IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr>.BitwiseAnd(UIntPtr, UIntPtr)

Oblicza bitowe i dwie wartości.

IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr>.BitwiseOr(UIntPtr, UIntPtr)

Oblicza bitowe lub dwie wartości.

IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr>.ExclusiveOr(UIntPtr, UIntPtr)

Oblicza wyłącznie lub dwie wartości.

IBitwiseOperators<UIntPtr,UIntPtr,UIntPtr>.OnesComplement(UIntPtr)

Oblicza reprezentację danej wartości jako uzupełnienie jedynek.

IComparisonOperators<UIntPtr,UIntPtr,Boolean>.GreaterThan(UIntPtr, UIntPtr)

Porównuje dwie wartości, aby określić, które wartości są większe.

IComparisonOperators<UIntPtr,UIntPtr,Boolean>.GreaterThanOrEqual(UIntPtr, UIntPtr)

Porównuje dwie wartości, aby określić, które wartości są większe lub równe.

IComparisonOperators<UIntPtr,UIntPtr,Boolean>.LessThan(UIntPtr, UIntPtr)

Porównuje dwie wartości, aby określić, które wartości są mniejsze.

IComparisonOperators<UIntPtr,UIntPtr,Boolean>.LessThanOrEqual(UIntPtr, UIntPtr)

Porównuje dwie wartości, aby określić, które wartości są mniejsze lub równe.

IDecrementOperators<UIntPtr>.CheckedDecrement(UIntPtr)

Dekrementuje wartość.

IDecrementOperators<UIntPtr>.Decrement(UIntPtr)

Dekrementuje wartość.

IDivisionOperators<UIntPtr,UIntPtr,UIntPtr>.Division(UIntPtr, UIntPtr)

Dzieli jedną wartość przez inną, aby obliczyć ich iloraz.

IEquatable<UIntPtr>.Equals(UIntPtr)

Zwraca wartość wskazującą, czy to wystąpienie jest równe innej niepodpisanej liczbie całkowitej.

IIncrementOperators<UIntPtr>.CheckedIncrement(UIntPtr)

Zwiększa wartość.

IIncrementOperators<UIntPtr>.Increment(UIntPtr)

Zwiększa wartość.

IMinMaxValue<UIntPtr>.MaxValue

Pobiera maksymalną wartość bieżącego typu.

IMinMaxValue<UIntPtr>.MinValue

Pobiera minimalną wartość bieżącego typu.

IModulusOperators<UIntPtr,UIntPtr,UIntPtr>.Modulus(UIntPtr, UIntPtr)

Dzieli dwie wartości, aby obliczyć ich modulo lub resztę.

IMultiplicativeIdentity<UIntPtr,UIntPtr>.MultiplicativeIdentity

Pobiera tożsamość mnożenia bieżącego typu.

IMultiplyOperators<UIntPtr,UIntPtr,UIntPtr>.CheckedMultiply(UIntPtr, UIntPtr)

Mnoży dwie wartości, aby obliczyć swój produkt.

IMultiplyOperators<UIntPtr,UIntPtr,UIntPtr>.Multiply(UIntPtr, UIntPtr)

Mnoży dwie wartości, aby obliczyć swój produkt.

INumber<UIntPtr>.CopySign(UIntPtr, UIntPtr)

Kopiuje znak wartości do znaku innej wartości.

INumber<UIntPtr>.MaxNumber(UIntPtr, UIntPtr)

Porównuje dwie wartości do obliczeń, które są większe i zwracają drugą wartość, jeśli dane wejściowe to NaN.

INumber<UIntPtr>.MinNumber(UIntPtr, UIntPtr)

Porównuje dwie wartości do obliczeń, które są mniejsze i zwracają drugą wartość, jeśli dane wejściowe to NaN.

INumberBase<UIntPtr>.Abs(UIntPtr)

Oblicza wartość bezwzględną.

INumberBase<UIntPtr>.IsCanonical(UIntPtr)

Określa, czy wartość znajduje się w jego reprezentacji kanonicznej.

INumberBase<UIntPtr>.IsComplexNumber(UIntPtr)

Określa, czy wartość reprezentuje liczbę zespolonej.

INumberBase<UIntPtr>.IsFinite(UIntPtr)

Określa, czy wartość jest skończona.

INumberBase<UIntPtr>.IsImaginaryNumber(UIntPtr)

Określa, czy wartość reprezentuje czystą liczbę wyimaginowaną.

INumberBase<UIntPtr>.IsInfinity(UIntPtr)

Określa, czy wartość jest nieskończona.

INumberBase<UIntPtr>.IsInteger(UIntPtr)

Określa, czy wartość reprezentuje liczbę całkowitą.

INumberBase<UIntPtr>.IsNaN(UIntPtr)

Określa, czy wartość to NaN.

INumberBase<UIntPtr>.IsNegative(UIntPtr)

Określa, czy wartość jest ujemna.

INumberBase<UIntPtr>.IsNegativeInfinity(UIntPtr)

Określa, czy wartość jest nieskończonością ujemną.

INumberBase<UIntPtr>.IsNormal(UIntPtr)

Określa, czy wartość jest normalna.

INumberBase<UIntPtr>.IsPositive(UIntPtr)

Określa, czy wartość jest dodatnia.

INumberBase<UIntPtr>.IsPositiveInfinity(UIntPtr)

Określa, czy wartość jest dodatnią nieskończonością.

INumberBase<UIntPtr>.IsRealNumber(UIntPtr)

Określa, czy wartość reprezentuje liczbę rzeczywistą.

INumberBase<UIntPtr>.IsSubnormal(UIntPtr)

Określa, czy wartość jest podnormalna.

INumberBase<UIntPtr>.IsZero(UIntPtr)

Określa, czy wartość ma wartość zero.

INumberBase<UIntPtr>.MaxMagnitude(UIntPtr, UIntPtr)

Porównuje dwie wartości z obliczeniami, które są większe.

INumberBase<UIntPtr>.MaxMagnitudeNumber(UIntPtr, UIntPtr)

Porównuje dwie wartości do obliczeń o większej wielkości i zwraca inną wartość, jeśli dane wejściowe to NaN.

INumberBase<UIntPtr>.MinMagnitude(UIntPtr, UIntPtr)

Porównuje dwie wartości z obliczeniami, które są mniejsze.

INumberBase<UIntPtr>.MinMagnitudeNumber(UIntPtr, UIntPtr)

Porównuje dwie wartości do obliczeń o mniejszej wielkości i zwraca inną wartość, jeśli dane wejściowe to NaN.

INumberBase<UIntPtr>.One

Pobiera wartość 1 typu.

INumberBase<UIntPtr>.Radix

Pobiera promienie lub podstawę dla typu.

INumberBase<UIntPtr>.TryConvertFromChecked<TOther>(TOther, UIntPtr)

Reprezentuje niepodpisaną liczbę całkowitą, w której szerokość bitów jest taka sama jak wskaźnik.

INumberBase<UIntPtr>.TryConvertFromSaturating<TOther>(TOther, UIntPtr)

Reprezentuje niepodpisaną liczbę całkowitą, w której szerokość bitów jest taka sama jak wskaźnik.

INumberBase<UIntPtr>.TryConvertFromTruncating<TOther>(TOther, UIntPtr)

Reprezentuje niepodpisaną liczbę całkowitą, w której szerokość bitów jest taka sama jak wskaźnik.

INumberBase<UIntPtr>.TryConvertToChecked<TOther>(UIntPtr, TOther)

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, zgłaszając wyjątek przepełnienia dla wszystkich wartości, które wykraczają poza reprezentatywny zakres bieżącego typu.

INumberBase<UIntPtr>.TryConvertToSaturating<TOther>(UIntPtr, TOther)

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, saturując wszystkie wartości, które mieszczą się poza reprezentatywnym zakresem bieżącego typu.

INumberBase<UIntPtr>.TryConvertToTruncating<TOther>(UIntPtr, TOther)

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, obcinając wszystkie wartości, które mieszczą się poza reprezentatywnym zakresem bieżącego typu.

INumberBase<UIntPtr>.Zero

Pobiera wartość 0 typu.

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

SerializationInfo Wypełnia obiekt danymi potrzebnymi do serializacji bieżącego UIntPtr obiektu.

IShiftOperators<UIntPtr,Int32,UIntPtr>.LeftShift(UIntPtr, Int32)

Przesuwa wartość pozostawioną przez daną kwotę.

IShiftOperators<UIntPtr,Int32,UIntPtr>.RightShift(UIntPtr, Int32)

Przesuwa wartość w prawo o daną kwotę.

IShiftOperators<UIntPtr,Int32,UIntPtr>.UnsignedRightShift(UIntPtr, Int32)

Przesuwa wartość w prawo o daną kwotę.

ISubtractionOperators<UIntPtr,UIntPtr,UIntPtr>.CheckedSubtraction(UIntPtr, UIntPtr)

Odejmuje dwie wartości, aby obliczyć ich różnicę.

ISubtractionOperators<UIntPtr,UIntPtr,UIntPtr>.Subtraction(UIntPtr, UIntPtr)

Odejmuje dwie wartości, aby obliczyć ich różnicę.

IUnaryNegationOperators<UIntPtr,UIntPtr>.CheckedUnaryNegation(UIntPtr)

Oblicza sprawdzoną jednoargumentową negację wartości.

IUnaryNegationOperators<UIntPtr,UIntPtr>.UnaryNegation(UIntPtr)

Oblicza jednoargumentowe negację wartości.

IUnaryPlusOperators<UIntPtr,UIntPtr>.UnaryPlus(UIntPtr)

Oblicza jednoargumentowy plus wartości.

Dotyczy

Bezpieczeństwo wątkowe

Ten typ jest bezpieczny wątkowo.

Zobacz też