UInt32 Structure
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Important
Cette API n’est pas conforme CLS.
Représente un entier non signé 32 bits.
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
- Héritage
- Attributs
- Implémente
-
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>
Remarques
Le UInt32
type de valeur représente des entiers non signés avec des valeurs comprises entre 0 et 4 294 967 295.
Important
Le UInt32 type n’est pas conforme CLS. Le type d’alternative compatible CLS est Int64. Int32 peut être utilisé à la place pour remplacer une UInt32 valeur comprise entre zéro et MaxValue. Pour plus d’informations sur la conformité CLS, consultez Language Independence and Language-Independent Components.
UInt32
fournit des méthodes pour comparer les instances de ce type, convertir la valeur d’une instance en sa String représentation et convertir la String représentation d’un nombre en instance de ce type.
Pour plus d’informations sur la façon dont les codes de spécification de format contrôlent la String représentation des types de valeurs, consultez Types de mise en forme.
Champs
MaxValue |
Représente la plus grande valeur possible de UInt32. Ce champ est constant. |
MinValue |
Représente la plus petite valeur possible de UInt32. Ce champ est constant. |
Méthodes
CompareTo(Object) |
Compare cette instance à un objet spécifié et retourne une indication de leurs valeurs relatives. |
CompareTo(UInt32) |
Compare cette instance à un entier non signé 32 bits et retourne une indication sur leurs valeurs relatives. |
Equals(Object) |
Retourne une valeur indiquant si cette instance équivaut à un objet spécifié. |
Equals(UInt32) |
Retourne une valeur indiquant si cette instance équivaut à un UInt32 spécifié. |
GetHashCode() |
Retourne le code de hachage de cette instance. |
GetTypeCode() | |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) |
Convertit la représentation sous forme de plage d'un nombre dans un style et un format propre à la culture spécifiés en son équivalent entier non signé 32 bits. |
Parse(String) |
Convertit la représentation sous forme de chaîne d'un nombre en son équivalent entier non signé 32 bits. |
Parse(String, IFormatProvider) |
Convertit la représentation sous forme de chaîne d'un nombre dans un format propre à la culture spécifié en son équivalent entier non signé 32 bits. |
Parse(String, NumberStyles) |
Convertit la représentation sous forme de chaîne d'un nombre dans un style spécifié en son équivalent entier non signé 32 bits. |
Parse(String, NumberStyles, IFormatProvider) |
Convertit la représentation sous forme de chaîne d'un nombre dans un style et un format propre à la culture spécifiés en son équivalent entier non signé 32 bits. |
ToString() |
Convertit la valeur numérique de cette instance en sa représentation équivalente sous forme de chaîne. |
ToString(IFormatProvider) |
Convertit la valeur numérique de cette instance en sa représentation sous forme de chaîne équivalente à l'aide des informations de format spécifiques à la culture donnée. |
ToString(String) |
Convertit la valeur numérique de cette instance en sa représentation sous forme de chaîne équivalente à l'aide du format spécifié. |
ToString(String, IFormatProvider) |
Convertit la valeur numérique de cette instance en sa représentation sous forme de chaîne équivalente à l'aide du format spécifié et des informations de format spécifiques à la culture. |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Tente de mettre en forme la valeur de l’instance de nombre entier non signé actuelle dans la plage de caractères fournie. |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt32) |
Essaie de convertir la représentation sous forme de plage d'un nombre dans un style et un format propre à la culture spécifiés en son équivalent entier non signé 32 bits. Une valeur de retour indique si la conversion a réussi ou a échoué. |
TryParse(ReadOnlySpan<Char>, UInt32) |
Tente de convertir la représentation sous forme de plage d'un nombre en son équivalent entier non signé 32 bits. Une valeur de retour indique si la conversion a réussi ou a échoué. |
TryParse(String, NumberStyles, IFormatProvider, UInt32) |
Essaie de convertir la représentation sous forme de chaîne d'un nombre dans un style et un format propre à la culture spécifiés en son équivalent entier non signé 32 bits. Une valeur de retour indique si la conversion a réussi ou a échoué. |
TryParse(String, UInt32) |
Tente de convertir la représentation sous forme de chaîne d'un nombre en son équivalent entier non signé 32 bits. Une valeur de retour indique si la conversion a réussi ou a échoué. |
Implémentations d’interfaces explicites
S’applique à
Cohérence de thread
Tous les membres de ce type sont thread safe. Les membres qui semblent modifier l’état de l’instance retournent réellement une nouvelle instance initialisée avec la nouvelle valeur. Comme pour tout autre type, la lecture et l’écriture dans une variable partagée qui contient une instance de ce type doit être protégée par un verrou pour garantir la sécurité du thread.