UInt32 Estrutura
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Importante
Esta API não está em conformidade com CLS.
Representa um inteiro sem sinal de 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 : IComparable<System::UInt32>, IConvertible, IEquatable<System::UInt32>, IParsable<System::UInt32>, ISpanParsable<System::UInt32>, System::Numerics::IAdditionOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IAdditiveIdentity<System::UInt32, System::UInt32>, System::Numerics::IBinaryInteger<System::UInt32>, System::Numerics::IBinaryNumber<System::UInt32>, System::Numerics::IBitwiseOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IComparisonOperators<System::UInt32, System::UInt32, bool>, System::Numerics::IDecrementOperators<System::UInt32>, System::Numerics::IDivisionOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IEqualityOperators<System::UInt32, System::UInt32, bool>, System::Numerics::IIncrementOperators<System::UInt32>, System::Numerics::IMinMaxValue<System::UInt32>, System::Numerics::IModulusOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IMultiplicativeIdentity<System::UInt32, System::UInt32>, System::Numerics::IMultiplyOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::INumber<System::UInt32>, System::Numerics::INumberBase<System::UInt32>, System::Numerics::IShiftOperators<System::UInt32, int, System::UInt32>, System::Numerics::ISubtractionOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IUnaryNegationOperators<System::UInt32, System::UInt32>, System::Numerics::IUnaryPlusOperators<System::UInt32, System::UInt32>, System::Numerics::IUnsignedNumber<System::UInt32>
public value class System::UInt32 : IComparable<System::UInt32>, IConvertible, IEquatable<System::UInt32>, IParsable<System::UInt32>, ISpanParsable<System::UInt32>, IUtf8SpanParsable<System::UInt32>, System::Numerics::IAdditionOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IAdditiveIdentity<System::UInt32, System::UInt32>, System::Numerics::IBinaryInteger<System::UInt32>, System::Numerics::IBinaryNumber<System::UInt32>, System::Numerics::IBitwiseOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IComparisonOperators<System::UInt32, System::UInt32, bool>, System::Numerics::IDecrementOperators<System::UInt32>, System::Numerics::IDivisionOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IEqualityOperators<System::UInt32, System::UInt32, bool>, System::Numerics::IIncrementOperators<System::UInt32>, System::Numerics::IMinMaxValue<System::UInt32>, System::Numerics::IModulusOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IMultiplicativeIdentity<System::UInt32, System::UInt32>, System::Numerics::IMultiplyOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::INumber<System::UInt32>, System::Numerics::INumberBase<System::UInt32>, System::Numerics::IShiftOperators<System::UInt32, int, System::UInt32>, System::Numerics::ISubtractionOperators<System::UInt32, System::UInt32, System::UInt32>, System::Numerics::IUnaryNegationOperators<System::UInt32, System::UInt32>, System::Numerics::IUnaryPlusOperators<System::UInt32, System::UInt32>, System::Numerics::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 : IComparable<uint>, IConvertible, IEquatable<uint>, IParsable<uint>, ISpanParsable<uint>, System.Numerics.IAdditionOperators<uint,uint,uint>, System.Numerics.IAdditiveIdentity<uint,uint>, System.Numerics.IBinaryInteger<uint>, System.Numerics.IBinaryNumber<uint>, System.Numerics.IBitwiseOperators<uint,uint,uint>, System.Numerics.IComparisonOperators<uint,uint,bool>, System.Numerics.IDecrementOperators<uint>, System.Numerics.IDivisionOperators<uint,uint,uint>, System.Numerics.IEqualityOperators<uint,uint,bool>, System.Numerics.IIncrementOperators<uint>, System.Numerics.IMinMaxValue<uint>, System.Numerics.IModulusOperators<uint,uint,uint>, System.Numerics.IMultiplicativeIdentity<uint,uint>, System.Numerics.IMultiplyOperators<uint,uint,uint>, System.Numerics.INumber<uint>, System.Numerics.INumberBase<uint>, System.Numerics.IShiftOperators<uint,int,uint>, System.Numerics.ISubtractionOperators<uint,uint,uint>, System.Numerics.IUnaryNegationOperators<uint,uint>, System.Numerics.IUnaryPlusOperators<uint,uint>, System.Numerics.IUnsignedNumber<uint>
[System.CLSCompliant(false)]
public readonly struct UInt32 : IComparable<uint>, IConvertible, IEquatable<uint>, IParsable<uint>, ISpanParsable<uint>, IUtf8SpanParsable<uint>, System.Numerics.IAdditionOperators<uint,uint,uint>, System.Numerics.IAdditiveIdentity<uint,uint>, System.Numerics.IBinaryInteger<uint>, System.Numerics.IBinaryNumber<uint>, System.Numerics.IBitwiseOperators<uint,uint,uint>, System.Numerics.IComparisonOperators<uint,uint,bool>, System.Numerics.IDecrementOperators<uint>, System.Numerics.IDivisionOperators<uint,uint,uint>, System.Numerics.IEqualityOperators<uint,uint,bool>, System.Numerics.IIncrementOperators<uint>, System.Numerics.IMinMaxValue<uint>, System.Numerics.IModulusOperators<uint,uint,uint>, System.Numerics.IMultiplicativeIdentity<uint,uint>, System.Numerics.IMultiplyOperators<uint,uint,uint>, System.Numerics.INumber<uint>, System.Numerics.INumberBase<uint>, System.Numerics.IShiftOperators<uint,int,uint>, System.Numerics.ISubtractionOperators<uint,uint,uint>, System.Numerics.IUnaryNegationOperators<uint,uint>, System.Numerics.IUnaryPlusOperators<uint,uint>, System.Numerics.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 IFormattable
interface IParsable<uint32>
interface ISpanFormattable
interface ISpanParsable<uint32>
interface IAdditionOperators<uint32, uint32, uint32>
interface IAdditiveIdentity<uint32, uint32>
interface IBinaryInteger<uint32>
interface IBinaryNumber<uint32>
interface IBitwiseOperators<uint32, uint32, uint32>
interface IComparisonOperators<uint32, uint32, bool>
interface IEqualityOperators<uint32, uint32, bool>
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 INumber<uint32>
interface INumberBase<uint32>
interface ISubtractionOperators<uint32, uint32, uint32>
interface IUnaryNegationOperators<uint32, uint32>
interface IUnaryPlusOperators<uint32, uint32>
interface IShiftOperators<uint32, int, uint32>
interface IMinMaxValue<uint32>
interface IUnsignedNumber<uint32>
[<System.CLSCompliant(false)>]
type uint32 = struct
interface IConvertible
interface IFormattable
interface IParsable<uint32>
interface ISpanFormattable
interface ISpanParsable<uint32>
interface IAdditionOperators<uint32, uint32, uint32>
interface IAdditiveIdentity<uint32, uint32>
interface IBinaryInteger<uint32>
interface IBinaryNumber<uint32>
interface IBitwiseOperators<uint32, uint32, uint32>
interface IComparisonOperators<uint32, uint32, bool>
interface IEqualityOperators<uint32, uint32, bool>
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 INumber<uint32>
interface INumberBase<uint32>
interface ISubtractionOperators<uint32, uint32, uint32>
interface IUnaryNegationOperators<uint32, uint32>
interface IUnaryPlusOperators<uint32, uint32>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<uint32>
interface IShiftOperators<uint32, int, 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, Boolean), IConvertible, IDecrementOperators(Of UInteger), IDivisionOperators(Of UInteger, UInteger, UInteger), IEqualityOperators(Of UInteger, UInteger, Boolean), 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), INumberBase(Of UInteger), IParsable(Of UInteger), IShiftOperators(Of UInteger, Integer, UInteger), ISpanParsable(Of UInteger), ISubtractionOperators(Of UInteger, UInteger, UInteger), IUnaryNegationOperators(Of UInteger, UInteger), IUnaryPlusOperators(Of UInteger, UInteger), IUnsignedNumber(Of UInteger)
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, Boolean), IConvertible, IDecrementOperators(Of UInteger), IDivisionOperators(Of UInteger, UInteger, UInteger), IEqualityOperators(Of UInteger, UInteger, Boolean), 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), INumberBase(Of UInteger), IParsable(Of UInteger), IShiftOperators(Of UInteger, Integer, UInteger), ISpanParsable(Of UInteger), ISubtractionOperators(Of UInteger, UInteger, UInteger), IUnaryNegationOperators(Of UInteger, UInteger), IUnaryPlusOperators(Of UInteger, UInteger), IUnsignedNumber(Of UInteger), IUtf8SpanParsable(Of UInteger)
Public Structure UInt32
Implements IComparable, IConvertible, IFormattable
Public Structure UInt32
Implements IComparable, IComparable(Of UInteger), IEquatable(Of UInteger), IFormattable
- Herança
- Atributos
- Implementações
-
IComparable IComparable<UInt32> IConvertible IEquatable<UInt32> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<UInt32> IParsable<TSelf> ISpanParsable<UInt32> ISpanParsable<TSelf> 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> IComparisonOperators<UInt32,UInt32,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<UInt32> IDecrementOperators<TSelf> IDivisionOperators<UInt32,UInt32,UInt32> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<UInt32,UInt32,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> 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> INumberBase<UInt32> INumberBase<TSelf> IShiftOperators<UInt32,Int32,UInt32> IShiftOperators<TSelf,Int32,TSelf> ISubtractionOperators<UInt32,UInt32,UInt32> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<UInt32,UInt32> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<UInt32,UInt32> IUnaryPlusOperators<TSelf,TSelf> IUnsignedNumber<UInt32> IUtf8SpanFormattable IUtf8SpanParsable<UInt32> IUtf8SpanParsable<TSelf>
Comentários
O UInt32
tipo de valor representa inteiros sem sinal com valores que variam de 0 a 4.294.967.295.
Importante
O UInt32 tipo não é compatível com CLS. O tipo alternativo compatível com CLS é Int64. Int32 pode ser usado em vez disso para substituir um UInt32 valor que varia de zero a MaxValue. Para obter mais informações sobre a conformidade com CLS, consulte Independência da Linguagem e Componentes de Language-Independent.
UInt32
fornece métodos para comparar instâncias desse tipo, converter o valor de uma instância em sua String representação e converter a String representação de um número em uma instância desse tipo.
Para obter informações sobre como os códigos de especificação de formato controlam a String representação de tipos de valor, consulte Tipos de formatação.
Campos
MaxValue |
Representa o maior valor possível de UInt32. Este campo é constante. |
MinValue |
Representa o menor valor possível de UInt32. Este campo é constante. |
Métodos
Clamp(UInt32, UInt32, UInt32) |
Fixa um valor a um valor mínimo e máximo inclusivo. |
CompareTo(Object) |
Compara essa instância com um objeto especificado e retorna uma indicação dos valores relativos. |
CompareTo(UInt32) |
Compara essa instância com um inteiro sem sinal de 32 bits especificado e retorna uma indicação dos valores relativos. |
CreateChecked<TOther>(TOther) |
Cria uma instância do tipo atual de um valor, gerando uma exceção de estouro para quaisquer valores que estejam fora do intervalo representável do tipo atual. |
CreateSaturating<TOther>(TOther) |
Cria uma instância do tipo atual de um valor, saturando todos os valores que estão fora do intervalo representável do tipo atual. |
CreateTruncating<TOther>(TOther) |
Cria uma instância do tipo atual de um valor, truncando todos os valores que estão fora do intervalo representável do tipo atual. |
DivRem(UInt32, UInt32) |
Calcula o quociente e o restante de dois valores. |
Equals(Object) |
Retorna um valor que indica se a instância é igual a um objeto especificado. |
Equals(UInt32) |
Retorna um valor que indica se essa instância é igual a um UInt32 especificado. |
GetHashCode() |
Retorna o código hash para a instância. |
GetTypeCode() | |
IsEvenInteger(UInt32) |
Determina se um valor representa um número integral par. |
IsOddInteger(UInt32) |
Determina se um valor representa um número integral ímpar. |
IsPow2(UInt32) |
Determina se um valor é uma potência de dois. |
LeadingZeroCount(UInt32) |
Calcula o número de zeros à esquerda em um valor. |
Log2(UInt32) |
Calcula o log2 de um valor. |
Max(UInt32, UInt32) |
Compara dois valores com a computação, que é maior. |
Min(UInt32, UInt32) |
Compara dois valores com a computação que é menor. |
Parse(ReadOnlySpan<Byte>, IFormatProvider) |
Analisa um intervalo de caracteres UTF-8 em um valor. |
Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider) |
Analisa um intervalo de caracteres UTF-8 em um valor. |
Parse(ReadOnlySpan<Char>, IFormatProvider) |
Analisa um intervalo de caracteres em um valor. |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) |
Converte a representação de intervalo de um número em um formato específico da cultura e estilo especificados em seu inteiro sem sinal de 32 bits equivalente. |
Parse(String) |
Converte a representação de cadeia de caracteres de um número em seu inteiro sem sinal de 32 bits equivalente. |
Parse(String, IFormatProvider) |
Converte a representação de cadeia de caracteres de um número em um formato específico à cultura especificado no seu inteiro sem sinal de 32 bits equivalente. |
Parse(String, NumberStyles) |
Converte a representação de cadeia de caracteres de um número em um estilo especificado em um inteiro sem sinal de 32 bits equivalente. |
Parse(String, NumberStyles, IFormatProvider) |
Converte a representação de cadeia de caracteres de um número em um formato específico à cultura e estilo especificados no seu inteiro sem sinal de 32 bits equivalente. |
PopCount(UInt32) |
Calcula o número de bits definidos em um valor. |
RotateLeft(UInt32, Int32) |
Gira um valor deixado por um determinado valor. |
RotateRight(UInt32, Int32) |
Gira um valor para a direita em um determinado valor. |
Sign(UInt32) |
Calcula o sinal de um valor. |
ToString() |
Converte o valor numérico dessa instância na representação da cadeia de caracteres equivalente. |
ToString(IFormatProvider) |
Converte o valor numérico dessa instância na representação da cadeia de caracteres equivalente usando as informações de formato específicas da cultura. |
ToString(String) |
Converte o valor numérico dessa instância na representação da cadeia de caracteres equivalente usando o formato especificado. |
ToString(String, IFormatProvider) |
Converte o valor numérico dessa instância na representação da cadeia de caracteres equivalente usando o formato especificado e as informações de formato específicas da cultura especificada. |
TrailingZeroCount(UInt32) |
Calcula o número de zeros à direita em um valor. |
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Tenta formatar o valor da instância atual como UTF-8 no intervalo fornecido de bytes. |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Tenta formatar o valor da instância de número inteiro sem sinal atual no intervalo de caracteres fornecido. |
TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt32) |
Tenta analisar um intervalo de caracteres UTF-8 em um valor. |
TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt32) |
Tenta analisar um intervalo de caracteres UTF-8 em um valor. |
TryParse(ReadOnlySpan<Byte>, UInt32) |
Tenta converter um intervalo de caracteres UTF-8 que contém a representação de cadeia de caracteres de um número em seu inteiro sem sinal de 32 bits equivalente. |
TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt32) |
Tenta analisar um intervalo de caracteres em um valor. |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt32) |
Tenta converter a representação de intervalo de um número em um estilo e formato de cultura especificados em seu inteiro sem sinal de 32 bits equivalente. Um valor retornado indica se a conversão foi bem-sucedida ou falhou. |
TryParse(ReadOnlySpan<Char>, UInt32) |
Tenta converter a representação de intervalo de um número no inteiro sem sinal de 32 bits equivalente. Um valor retornado indica se a conversão foi bem-sucedida ou falhou. |
TryParse(String, IFormatProvider, UInt32) |
Tenta analisar uma cadeia de caracteres em um valor. |
TryParse(String, NumberStyles, IFormatProvider, UInt32) |
Tenta converter a representação de cadeia de caracteres de um número em um estilo e formato de cultura especificados em seu equivalente de inteiro sem sinal de 32 bits. Um valor retornado indica se a conversão foi bem-sucedida ou falhou. |
TryParse(String, UInt32) |
Tenta converter a representação de cadeia de caracteres de um número no inteiro sem sinal de 32 bits equivalente. Um valor retornado indica se a conversão foi bem-sucedida ou falhou. |
Implantações explícitas de interface
Aplica-se a
Acesso thread-safe
Todos os membros desse tipo são thread-safe. Os membros que aparentam modificar efetivamente o estado retornam uma nova instância inicializada com o novo valor. Assim como acontece com qualquer outro tipo, a leitura e a gravação em uma variável compartilhada que contém uma instância desse tipo devem ser protegidas por um bloqueio para garantir thread-safe.
Confira também
Comentários
Enviar e exibir comentários de