UInt32 Estrutura

Definição

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<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, 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, 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<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)]
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)]
[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 IFormattable
    interface IParsable<uint32>
    interface ISpanFormattable
    interface ISpanParsable<uint32>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<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 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 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, 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 IComparable, IConvertible, IFormattable
Public Structure UInt32
Implements IComparable, IComparable(Of UInteger), IEquatable(Of UInteger), IFormattable
Herança
UInt32
Atributos
Implementações
IComparable IComparable<UInt32> IConvertible IEquatable<UInt32> IFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<UInt32> IParsable<TSelf> ISpanFormattable ISpanParsable<UInt32> ISpanParsable<TSelf> IUtf8SpanFormattable IUtf8SpanParsable<UInt32> IUtf8SpanParsable<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>

Observações

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 mais informações sobre conformidade com CLS, consulte Independência da Linguagem e Componentes Language-Independent.

UInt32 fornece métodos para comparar instâncias deste tipo, converter o valor de uma instância na sua String representação e converter a String representação de um número numa instância deste tipo.

Para informações sobre como os códigos de especificação de formato controlam a String representação dos tipos de valor, veja Tipos de Formatação.

Campos

Name Description
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

Name Description
BigMul(UInt32, UInt32)

Produz o produto completo de dois números não sinalizados de 32 bits.

Clamp(UInt32, UInt32, UInt32)

Fixa um valor a um valor mínimo e máximo inclusivo.

CompareTo(Object)

Compara esta instância com um objeto especificado e devolve uma indicação dos seus valores relativos.

CompareTo(UInt32)

Compara esta instância com um inteiro não assinado especificado de 32 bits e devolve uma indicação dos seus valores relativos.

CreateChecked<TOther>(TOther)

Cria uma instância do tipo atual a partir de um valor, lançando uma exceção de overflow para quaisquer valores que estejam fora do intervalo representável do tipo atual.

CreateSaturating<TOther>(TOther)

Cria uma instância do tipo atual a partir de um valor, saturando quaisquer valores que estejam fora do intervalo representável do tipo atual.

CreateTruncating<TOther>(TOther)

Cria uma instância do tipo atual a partir de um valor, truncando quaisquer valores que estejam fora do intervalo representável do tipo atual.

DivRem(UInt32, UInt32)

Calcula o quociente e o resto de dois valores.

Equals(Object)

Devolve um valor que indica se esta instância é igual a um objeto especificado.

Equals(UInt32)

Devolve um valor que indica se esta instância é igual a um especificado UInt32.

GetHashCode()

Devolve o código de hash para esta instância.

GetTypeCode()

Devolve o TypeCode tipo UInt32de valor para .

IsEvenInteger(UInt32)

Determina se um valor representa um número inteiro par.

IsOddInteger(UInt32)

Determina se um valor representa um número inteiro ímpar.

IsPow2(UInt32)

Determina se um valor é uma potência de dois.

LeadingZeroCount(UInt32)

Calcula o número de zeros à esquerda num valor.

Log10(UInt32)

Representa um inteiro sem sinal de 32 bits.

Log2(UInt32)

Calcula o log2 de um valor.

Max(UInt32, UInt32)

Compara dois valores para calcular qual é maior.

Min(UInt32, UInt32)

Compara dois valores para calcular qual é menor.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Analisa um intervalo de caracteres UTF-8 num valor.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analisa um intervalo de caracteres UTF-8 num valor.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Divide um intervalo de caracteres num valor.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Converte a representação em expansão de um número num estilo especificado e formato específico de cultura para o seu equivalente inteiro sem sinal de 32 bits.

Parse(String, IFormatProvider)

Converte a representação da cadeia de um número num formato específico de cultura para o seu equivalente inteiro sem sinal de 32 bits.

Parse(String, NumberStyles, IFormatProvider)

Converte a representação em cadeia de um número num estilo especificado e formato específico de cultura para o seu equivalente inteiro sem sinal de 32 bits.

Parse(String, NumberStyles)

Converte a representação da cadeia de um número num estilo especificado para o seu equivalente inteiro sem sinal de 32 bits.

Parse(String)

Converte a representação da cadeia de um número para o seu equivalente inteiro sem sinal de 32 bits.

PopCount(UInt32)

Calcula o número de bits que estão definidos num valor.

RotateLeft(UInt32, Int32)

Roda um valor deixado por uma determinada quantia.

RotateRight(UInt32, Int32)

Roda um valor exatamente por uma determinada quantia.

Sign(UInt32)

Calcula o sinal de um valor.

ToString()

Converte o valor numérico desta instância para a sua representação equivalente em cadeias.

ToString(IFormatProvider)

Converte o valor numérico desta instância para a sua representação equivalente de cadeias usando a informação de formato específica da cultura especificada.

ToString(String, IFormatProvider)

Converte o valor numérico desta instância para a sua representação equivalente de cadeias usando o formato especificado e a informação específica de formato da cultura.

ToString(String)

Converte o valor numérico desta instância para a sua representação equivalente em cadeia usando o formato especificado.

TrailingZeroCount(UInt32)

Calcula o número de zeros finais num 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 atual do número inteiro sem sinal no intervalo fornecido de caracteres.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt32)

Tenta separar um intervalo de caracteres UTF-8 num valor.

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

Tenta separar um intervalo de caracteres UTF-8 num valor.

TryParse(ReadOnlySpan<Byte>, UInt32)

Tenta converter um intervalo de caracteres UTF-8 contendo a representação da cadeia de um número para o seu equivalente inteiro sem sinal de 32 bits.

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt32)

Tenta separar um intervalo de caracteres num valor.

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

Tenta converter a representação span de um número num estilo especificado e formato específico de cultura para o seu equivalente inteiro sem sinal de 32 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou.

TryParse(ReadOnlySpan<Char>, UInt32)

Tenta converter a representação em expansão de um número para o seu equivalente inteiro sem sinal de 32 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou.

TryParse(String, IFormatProvider, UInt32)

Tenta analisar uma cadeia num valor.

TryParse(String, NumberStyles, IFormatProvider, UInt32)

Tenta converter a representação em cadeia de um número num estilo especificado e formato específico de cultura para o seu equivalente inteiro sem sinal de 32 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou.

TryParse(String, UInt32)

Tenta converter a representação da cadeia de um número para o seu equivalente inteiro sem sinal de 32 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou.

Implementações de Interface Explícita

Name Description
IAdditionOperators<UInt32,UInt32,UInt32>.Addition(UInt32, UInt32)

Soma dois valores para calcular a sua soma.

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

Soma dois valores para calcular a sua soma.

IAdditiveIdentity<UInt32,UInt32>.AdditiveIdentity

Obtém a identidade aditiva do tipo atual.

IBinaryInteger<UInt32>.GetByteCount()

Obtém o número de bytes que serão escritos como parte de TryWriteLittleEndian(Span<Byte>, Int32).

IBinaryInteger<UInt32>.GetShortestBitLength()

Obtém o comprimento, em bits, da representação do complemento dos dois mais curtos do valor atual.

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

Representa um inteiro sem sinal de 32 bits.

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

Representa um inteiro sem sinal de 32 bits.

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

Tenta escrever o valor atual, em formato big-endian, para um determinado intervalo.

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

Tenta escrever o valor atual, em formato little-endian, num determinado intervalo.

IBinaryNumber<UInt32>.AllBitsSet

Obtém uma instância do tipo binário em que todos os bits estão definidos.

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

Calcula o bit a bit de dois valores.

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

Calcula o bit-or-ou de dois valores.

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

Calcula o ou exclusivo de dois valores.

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

Calcula a representação de um complemento de um dado valor.

IComparable.CompareTo(Object)

Compara esta instância com um objeto especificado e devolve uma indicação dos seus valores relativos.

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

Compara dois valores para determinar qual é maior.

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

Compara dois valores para determinar qual é maior ou igual.

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

Compara dois valores para determinar qual é menor.

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

Compara dois valores para determinar qual é menor ou igual.

IConvertible.GetTypeCode()

Devolve o TypeCode tipo UInt32de valor para .

IConvertible.ToBoolean(IFormatProvider)

Para uma descrição deste elemento, veja ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

Para uma descrição deste elemento, veja ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

Para uma descrição deste elemento, veja ToChar(IFormatProvider).

IConvertible.ToDateTime(IFormatProvider)

Esta conversão não é suportada. Tentar usar este método lança um InvalidCastException.

IConvertible.ToDecimal(IFormatProvider)

Para uma descrição deste elemento, veja ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

Para uma descrição deste elemento, veja ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

Para uma descrição deste elemento, veja ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

Para uma descrição deste elemento, veja ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

Para uma descrição deste elemento, veja ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

Para uma descrição deste elemento, veja ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

Para uma descrição deste elemento, veja ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

Para uma descrição deste elemento, veja ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

Para uma descrição deste elemento, veja ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

Para uma descrição deste elemento, veja ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

Para uma descrição deste elemento, veja ToUInt64(IFormatProvider).

IDecrementOperators<UInt32>.CheckedDecrement(UInt32)

Diminui um valor.

IDecrementOperators<UInt32>.Decrement(UInt32)

Diminui um valor.

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

Divide um valor por outro para calcular o seu quociente.

IEqualityOperators<UInt32,UInt32,Boolean>.Equality(UInt32, UInt32)

Compara dois valores para determinar a igualdade.

IEqualityOperators<UInt32,UInt32,Boolean>.Inequality(UInt32, UInt32)

Compara dois valores para determinar a desigualdade.

IIncrementOperators<UInt32>.CheckedIncrement(UInt32)

Incrementa um valor.

IIncrementOperators<UInt32>.Increment(UInt32)

Incrementa um valor.

IMinMaxValue<UInt32>.MaxValue

Obtém o valor máximo do tipo atual.

IMinMaxValue<UInt32>.MinValue

Obtém o valor mínimo do tipo atual.

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

Divide dois valores para calcular o seu módulo ou resto.

IMultiplicativeIdentity<UInt32,UInt32>.MultiplicativeIdentity

Obtém a identidade multiplicativa do tipo atual.

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

Multiplica dois valores juntos para calcular o seu produto.

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

Multiplica dois valores juntos para calcular o seu produto.

INumber<UInt32>.CopySign(UInt32, UInt32)

Copia o sinal de um valor para o sinal de outro valor.

INumber<UInt32>.MaxNumber(UInt32, UInt32)

Compara dois valores para calcular qual é maior e devolve o outro valor se uma entrada for NaN.

INumber<UInt32>.MinNumber(UInt32, UInt32)

Compara dois valores para calcular qual é menor e devolve o outro valor se uma entrada for NaN.

INumberBase<UInt32>.Abs(UInt32)

Calcula o absoluto de um valor.

INumberBase<UInt32>.IsCanonical(UInt32)

Determina se um valor está na sua representação canónica.

INumberBase<UInt32>.IsComplexNumber(UInt32)

Determina se um valor representa um número complexo.

INumberBase<UInt32>.IsFinite(UInt32)

Determina se um valor é finito.

INumberBase<UInt32>.IsImaginaryNumber(UInt32)

Determina se um valor representa um número puramente imaginário.

INumberBase<UInt32>.IsInfinity(UInt32)

Determina se um valor é infinito.

INumberBase<UInt32>.IsInteger(UInt32)

Determina se um valor representa um número inteiro.

INumberBase<UInt32>.IsNaN(UInt32)

Determina se um valor é NaN.

INumberBase<UInt32>.IsNegative(UInt32)

Determina se um valor é negativo.

INumberBase<UInt32>.IsNegativeInfinity(UInt32)

Determina se um valor é menos infinito.

INumberBase<UInt32>.IsNormal(UInt32)

Determina se um valor é normal.

INumberBase<UInt32>.IsPositive(UInt32)

Determina se um valor é positivo.

INumberBase<UInt32>.IsPositiveInfinity(UInt32)

Determina se um valor é infinito positivo.

INumberBase<UInt32>.IsRealNumber(UInt32)

Determina se um valor representa um número real.

INumberBase<UInt32>.IsSubnormal(UInt32)

Determina se um valor é subnormal.

INumberBase<UInt32>.IsZero(UInt32)

Determina se um valor é zero.

INumberBase<UInt32>.MaxMagnitude(UInt32, UInt32)

Compara dois valores para calcular qual é maior.

INumberBase<UInt32>.MaxMagnitudeNumber(UInt32, UInt32)

Compara dois valores para calcular qual tem maior magnitude e devolve o outro valor se uma entrada for NaN.

INumberBase<UInt32>.MinMagnitude(UInt32, UInt32)

Compara dois valores para calcular qual é menor.

INumberBase<UInt32>.MinMagnitudeNumber(UInt32, UInt32)

Compara dois valores para calcular que tem a magnitude menor e devolve o outro valor se uma entrada for NaN.

INumberBase<UInt32>.MultiplyAddEstimate(UInt32, UInt32, UInt32)

Calcula uma estimativa de (left * right) + . addend

INumberBase<UInt32>.One

Obtém o valor 1 do tipo.

INumberBase<UInt32>.Radix

Obtém a raiz, ou base, para o tipo.

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

Representa um inteiro sem sinal de 32 bits.

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

Representa um inteiro sem sinal de 32 bits.

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

Representa um inteiro sem sinal de 32 bits.

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

Tenta converter uma instância do tipo atual para outro tipo, lançando uma exceção de overflow para quaisquer valores que estejam fora do intervalo representável do tipo atual.

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

Tenta converter uma instância do tipo atual para outro tipo, saturando quaisquer valores que estejam fora do intervalo representável do tipo atual.

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

Tenta converter uma instância do tipo atual para outro tipo, truncando quaisquer valores que estejam fora do intervalo representável do tipo atual.

INumberBase<UInt32>.Zero

Obtém o valor 0 do tipo.

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

Desloca um valor deixado por uma determinada quantia.

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

Desloca um valor para a direita numa determinada quantia.

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

Desloca um valor para a direita numa determinada quantia.

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

Subtrai dois valores para calcular a sua diferença.

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

Subtrai dois valores para calcular a sua diferença.

IUnaryNegationOperators<UInt32,UInt32>.CheckedUnaryNegation(UInt32)

Calcula a negação unária verificada de um valor.

IUnaryNegationOperators<UInt32,UInt32>.UnaryNegation(UInt32)

Calcula a negação unária de um valor.

IUnaryPlusOperators<UInt32,UInt32>.UnaryPlus(UInt32)

Calcula o plus unário de um valor.

Aplica-se a

Segurança de Thread

Todos os membros deste tipo são seguros para fios. Os membros que parecem modificar o estado da instância retornam na verdade uma nova instância inicializada com o novo valor. Como em qualquer outro tipo, a leitura e escrita numa variável partilhada que contenha uma instância deste tipo deve ser protegida por um bloqueio para garantir a segurança do thread.

Ver também