UInt32 Struktura
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Ważne
Ten interfejs API nie jest zgodny ze specyfikacją CLS.
Reprezentuje 32-bitową niepodpisaną liczbę całkowitą.
public value class System::UInt32 : IComparable, IComparable<System::UInt32>, IConvertible, IEquatable<System::UInt32>, IFormattable
public value class System::UInt32 : IComparable, IComparable<System::UInt32>, IConvertible, IEquatable<System::UInt32>, ISpanFormattable
public value class System::UInt32 : IAdditionOperators<System::UInt32, System::UInt32, System::UInt32>, IAdditiveIdentity<System::UInt32, System::UInt32>, IBinaryInteger<System::UInt32>, IBinaryNumber<System::UInt32>, IBitwiseOperators<System::UInt32, System::UInt32, System::UInt32>, IComparable<System::UInt32>, IComparisonOperators<System::UInt32, System::UInt32>, IConvertible, IDecrementOperators<System::UInt32>, IDivisionOperators<System::UInt32, System::UInt32, System::UInt32>, IEqualityOperators<System::UInt32, System::UInt32>, IEquatable<System::UInt32>, IIncrementOperators<System::UInt32>, IMinMaxValue<System::UInt32>, IModulusOperators<System::UInt32, System::UInt32, System::UInt32>, IMultiplicativeIdentity<System::UInt32, System::UInt32>, IMultiplyOperators<System::UInt32, System::UInt32, System::UInt32>, INumber<System::UInt32>, IParseable<System::UInt32>, IShiftOperators<System::UInt32, System::UInt32>, ISpanParseable<System::UInt32>, ISubtractionOperators<System::UInt32, System::UInt32, System::UInt32>, IUnaryNegationOperators<System::UInt32, System::UInt32>, IUnaryPlusOperators<System::UInt32, System::UInt32>, IUnsignedNumber<System::UInt32>
public value class System::UInt32 : IComparable, IConvertible, IFormattable
public value class System::UInt32 : IComparable, IComparable<System::UInt32>, IEquatable<System::UInt32>, IFormattable
[System.CLSCompliant(false)]
public struct UInt32 : IComparable, IComparable<uint>, IConvertible, IEquatable<uint>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt32 : IComparable, IComparable<uint>, IConvertible, IEquatable<uint>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt32 : IComparable, IComparable<uint>, IConvertible, IEquatable<uint>, ISpanFormattable
[System.CLSCompliant(false)]
public readonly struct UInt32 : IAdditionOperators<uint,uint,uint>, IAdditiveIdentity<uint,uint>, IBinaryInteger<uint>, IBinaryNumber<uint>, IBitwiseOperators<uint,uint,uint>, IComparable<uint>, IComparisonOperators<uint,uint>, IConvertible, IDecrementOperators<uint>, IDivisionOperators<uint,uint,uint>, IEqualityOperators<uint,uint>, IEquatable<uint>, IIncrementOperators<uint>, IMinMaxValue<uint>, IModulusOperators<uint,uint,uint>, IMultiplicativeIdentity<uint,uint>, IMultiplyOperators<uint,uint,uint>, INumber<uint>, IParseable<uint>, IShiftOperators<uint,uint>, ISpanParseable<uint>, ISubtractionOperators<uint,uint,uint>, IUnaryNegationOperators<uint,uint>, IUnaryPlusOperators<uint,uint>, IUnsignedNumber<uint>
[System.CLSCompliant(false)]
[System.Serializable]
public struct UInt32 : IComparable, IConvertible, IFormattable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct UInt32 : IComparable, IComparable<uint>, IConvertible, IEquatable<uint>, IFormattable
[System.CLSCompliant(false)]
public struct UInt32 : IComparable, IComparable<uint>, IEquatable<uint>, IFormattable
[<System.CLSCompliant(false)>]
type uint32 = struct
interface IConvertible
interface IFormattable
[<System.CLSCompliant(false)>]
type uint32 = struct
interface IConvertible
interface ISpanFormattable
interface IFormattable
[<System.CLSCompliant(false)>]
type uint32 = struct
interface IConvertible
interface ISpanFormattable
interface IFormattable
interface IBinaryInteger<uint32>
interface IBinaryNumber<uint32>
interface IBitwiseOperators<uint32, uint32, uint32>
interface INumber<uint32>
interface IAdditionOperators<uint32, uint32, uint32>
interface IAdditiveIdentity<uint32, uint32>
interface IComparisonOperators<uint32, uint32>
interface IEqualityOperators<uint32, uint32>
interface IDecrementOperators<uint32>
interface IDivisionOperators<uint32, uint32, uint32>
interface IIncrementOperators<uint32>
interface IModulusOperators<uint32, uint32, uint32>
interface IMultiplicativeIdentity<uint32, uint32>
interface IMultiplyOperators<uint32, uint32, uint32>
interface IParseable<uint32>
interface ISpanParseable<uint32>
interface ISubtractionOperators<uint32, uint32, uint32>
interface IUnaryNegationOperators<uint32, uint32>
interface IUnaryPlusOperators<uint32, uint32>
interface IShiftOperators<uint32, uint32>
interface IMinMaxValue<uint32>
interface IUnsignedNumber<uint32>
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type uint32 = struct
interface IFormattable
interface IConvertible
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type uint32 = struct
interface IFormattable
interface IConvertible
[<System.CLSCompliant(false)>]
type uint32 = struct
interface IFormattable
Public Structure UInt32
Implements IComparable, IComparable(Of UInteger), IConvertible, IEquatable(Of UInteger), IFormattable
Public Structure UInt32
Implements IComparable, IComparable(Of UInteger), IConvertible, IEquatable(Of UInteger), ISpanFormattable
Public Structure UInt32
Implements IAdditionOperators(Of UInteger, UInteger, UInteger), IAdditiveIdentity(Of UInteger, UInteger), IBinaryInteger(Of UInteger), IBinaryNumber(Of UInteger), IBitwiseOperators(Of UInteger, UInteger, UInteger), IComparable(Of UInteger), IComparisonOperators(Of UInteger, UInteger), IConvertible, IDecrementOperators(Of UInteger), IDivisionOperators(Of UInteger, UInteger, UInteger), IEqualityOperators(Of UInteger, UInteger), IEquatable(Of UInteger), IIncrementOperators(Of UInteger), IMinMaxValue(Of UInteger), IModulusOperators(Of UInteger, UInteger, UInteger), IMultiplicativeIdentity(Of UInteger, UInteger), IMultiplyOperators(Of UInteger, UInteger, UInteger), INumber(Of UInteger), IParseable(Of UInteger), IShiftOperators(Of UInteger, UInteger), ISpanParseable(Of UInteger), ISubtractionOperators(Of UInteger, UInteger, UInteger), IUnaryNegationOperators(Of UInteger, UInteger), IUnaryPlusOperators(Of UInteger, UInteger), IUnsignedNumber(Of UInteger)
Public Structure UInt32
Implements IComparable, IConvertible, IFormattable
Public Structure UInt32
Implements IComparable, IComparable(Of UInteger), IEquatable(Of UInteger), IFormattable
- Dziedziczenie
- Atrybuty
- Implementuje
-
IComparable IComparable<UInt32> IConvertible IEquatable<UInt32> IFormattable ISpanFormattable IAdditionOperators<UInt32,UInt32,UInt32> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<UInt32,UInt32> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<UInt32> IBinaryNumber<UInt32> IBinaryNumber<TSelf> IBitwiseOperators<UInt32,UInt32,UInt32> IBitwiseOperators<TSelf,TSelf,TSelf> IComparable<TOther> IComparable<TSelf> IComparisonOperators<UInt32,UInt32> IComparisonOperators<TSelf,TSelf> IDecrementOperators<UInt32> IDecrementOperators<TSelf> IDivisionOperators<UInt32,UInt32,UInt32> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<UInt32,UInt32> IEqualityOperators<TSelf,TOther> IEqualityOperators<TSelf,TSelf> IEquatable<TOther> IEquatable<TSelf> IIncrementOperators<UInt32> IIncrementOperators<TSelf> IMinMaxValue<UInt32> IModulusOperators<UInt32,UInt32,UInt32> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<UInt32,UInt32> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<UInt32,UInt32,UInt32> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<UInt32> INumber<TSelf> IParseable<UInt32> IParseable<TSelf> IShiftOperators<UInt32,UInt32> IShiftOperators<TSelf,TSelf> ISpanParseable<UInt32> ISpanParseable<TSelf> ISubtractionOperators<UInt32,UInt32,UInt32> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<UInt32,UInt32> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<UInt32,UInt32> IUnaryPlusOperators<TSelf,TSelf> IUnsignedNumber<UInt32>
Uwagi
Typ UInt32
wartości reprezentuje niepodpisane liczby całkowite z wartościami od 0 do 4294 967 295.
Ważne
Typ UInt32 nie jest zgodny ze specyfikacją CLS. Alternatywnym typem zgodnym ze specyfikacją CLS jest Int64. Int32 Zamiast tego można zastąpić UInt32 wartość, która waha się od zera do MaxValue. Aby uzyskać więcej informacji na temat zgodności clS, zobacz Niezależność języka i składniki Language-Independent.
UInt32
Udostępnia metody porównywania wystąpień tego typu, konwertowania wartości wystąpienia na jej String reprezentację i konwertowania String reprezentacji liczby na wystąpienie tego typu.
Aby uzyskać informacje o sposobie kontrolowania String reprezentacji typów wartości przez kody specyfikacji formatu, zobacz Typy formatowania.
Pola
MaxValue |
Reprezentuje największą możliwą wartość .UInt32 To pole jest stałe. |
MinValue |
Reprezentuje najmniejszą możliwą wartość .UInt32 To pole jest stałe. |
Metody
CompareTo(Object) |
Porównuje to wystąpienie z określonym obiektem i zwraca wskazanie ich względnych wartości. |
CompareTo(UInt32) |
Porównuje to wystąpienie z 32-bitową niepodpisaną liczbą całkowitą i zwraca wskazanie ich wartości względnych. |
Equals(Object) |
Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi. |
Equals(UInt32) |
Zwraca wartość wskazującą, czy to wystąpienie jest równe określonej UInt32wartości . |
GetHashCode() |
Zwraca wartość skrótu dla tego wystąpienia. |
GetTypeCode() | |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) |
Konwertuje reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej bez znaku. |
Parse(String) |
Konwertuje reprezentację ciągu liczby na 32-bitową niepodpisaną liczbę całkowitą równoważną. |
Parse(String, IFormatProvider) |
Konwertuje reprezentację ciągu liczby w określonym formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej bez znaku. |
Parse(String, NumberStyles) |
Konwertuje reprezentację ciągu liczby w określonym stylu na odpowiednik 32-bitowej liczby całkowitej bez znaku. |
Parse(String, NumberStyles, IFormatProvider) |
Konwertuje reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej bez znaku. |
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 podanych danych formatowania specyficznych dla kultury. |
ToString(String) |
Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację ciągu przy użyciu określonego formatu. |
ToString(String, 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. |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Próbuje sformatować wartość bieżącego niepodpisanego wystąpienia liczby całkowitej w podanym zakresie znaków. |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt32) |
Próbuje przekonwertować reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej bez znaku. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie. |
TryParse(ReadOnlySpan<Char>, UInt32) |
Próbuje przekonwertować reprezentację zakresu liczby na odpowiednik 32-bitowej liczby całkowitej bez znaku. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie. |
TryParse(String, NumberStyles, IFormatProvider, UInt32) |
Próbuje przekonwertować reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej bez znaku. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie. |
TryParse(String, UInt32) |
Próbuje przekonwertować reprezentację ciągu liczby na odpowiednik 32-bitowej liczby całkowitej bez znaku. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie. |
Jawne implementacje interfejsu
Dotyczy
Bezpieczeństwo wątkowe
Wszystkie elementy członkowskie tego typu są bezpieczne wątkowo. Elementy członkowskie, które na pierwszy rzut oka modyfikują stan wystąpienia, w rzeczywistości zwracają nowe wystąpienie zainicjowane z nową wartością. Podobnie jak w przypadku innych typów odczytywanie i zapisywanie w udostępnionej zmiennej, która zawiera wystąpienie tego typu, musi być chronione przez blokadę w celu zagwarantowania bezpieczeństwa wątków.