UInt16 Estrutura
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Importante
Esta API não está em conformidade com CLS.
Representa um inteiro sem sinal de 16 bits.
public value class System::UInt16 : IComparable, IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, IFormattable
public value class System::UInt16 : IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, IParsable<System::UInt16>, ISpanParsable<System::UInt16>, IUtf8SpanParsable<System::UInt16>, System::Numerics::IAdditionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IAdditiveIdentity<System::UInt16, System::UInt16>, System::Numerics::IBinaryInteger<System::UInt16>, System::Numerics::IBinaryNumber<System::UInt16>, System::Numerics::IBitwiseOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IComparisonOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IDecrementOperators<System::UInt16>, System::Numerics::IDivisionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IEqualityOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IIncrementOperators<System::UInt16>, System::Numerics::IMinMaxValue<System::UInt16>, System::Numerics::IModulusOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IMultiplicativeIdentity<System::UInt16, System::UInt16>, System::Numerics::IMultiplyOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::INumber<System::UInt16>, System::Numerics::INumberBase<System::UInt16>, System::Numerics::IShiftOperators<System::UInt16, int, System::UInt16>, System::Numerics::ISubtractionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IUnaryNegationOperators<System::UInt16, System::UInt16>, System::Numerics::IUnaryPlusOperators<System::UInt16, System::UInt16>, System::Numerics::IUnsignedNumber<System::UInt16>
public value class System::UInt16 : IComparable, IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, ISpanFormattable
public value class System::UInt16 : IComparable<System::UInt16>, IConvertible, IEquatable<System::UInt16>, IParsable<System::UInt16>, ISpanParsable<System::UInt16>, System::Numerics::IAdditionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IAdditiveIdentity<System::UInt16, System::UInt16>, System::Numerics::IBinaryInteger<System::UInt16>, System::Numerics::IBinaryNumber<System::UInt16>, System::Numerics::IBitwiseOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IComparisonOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IDecrementOperators<System::UInt16>, System::Numerics::IDivisionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IEqualityOperators<System::UInt16, System::UInt16, bool>, System::Numerics::IIncrementOperators<System::UInt16>, System::Numerics::IMinMaxValue<System::UInt16>, System::Numerics::IModulusOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IMultiplicativeIdentity<System::UInt16, System::UInt16>, System::Numerics::IMultiplyOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::INumber<System::UInt16>, System::Numerics::INumberBase<System::UInt16>, System::Numerics::IShiftOperators<System::UInt16, int, System::UInt16>, System::Numerics::ISubtractionOperators<System::UInt16, System::UInt16, System::UInt16>, System::Numerics::IUnaryNegationOperators<System::UInt16, System::UInt16>, System::Numerics::IUnaryPlusOperators<System::UInt16, System::UInt16>, System::Numerics::IUnsignedNumber<System::UInt16>
public value class System::UInt16 : IComparable, IConvertible, IFormattable
public value class System::UInt16 : IComparable, IComparable<System::UInt16>, IEquatable<System::UInt16>, IFormattable
[System.CLSCompliant(false)]
public struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable<ushort>, IConvertible, IEquatable<ushort>, IParsable<ushort>, ISpanParsable<ushort>, IUtf8SpanParsable<ushort>, System.Numerics.IAdditionOperators<ushort,ushort,ushort>, System.Numerics.IAdditiveIdentity<ushort,ushort>, System.Numerics.IBinaryInteger<ushort>, System.Numerics.IBinaryNumber<ushort>, System.Numerics.IBitwiseOperators<ushort,ushort,ushort>, System.Numerics.IComparisonOperators<ushort,ushort,bool>, System.Numerics.IDecrementOperators<ushort>, System.Numerics.IDivisionOperators<ushort,ushort,ushort>, System.Numerics.IEqualityOperators<ushort,ushort,bool>, System.Numerics.IIncrementOperators<ushort>, System.Numerics.IMinMaxValue<ushort>, System.Numerics.IModulusOperators<ushort,ushort,ushort>, System.Numerics.IMultiplicativeIdentity<ushort,ushort>, System.Numerics.IMultiplyOperators<ushort,ushort,ushort>, System.Numerics.INumber<ushort>, System.Numerics.INumberBase<ushort>, System.Numerics.IShiftOperators<ushort,int,ushort>, System.Numerics.ISubtractionOperators<ushort,ushort,ushort>, System.Numerics.IUnaryNegationOperators<ushort,ushort>, System.Numerics.IUnaryPlusOperators<ushort,ushort>, System.Numerics.IUnsignedNumber<ushort>
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, ISpanFormattable
[System.CLSCompliant(false)]
public readonly struct UInt16 : IComparable<ushort>, IConvertible, IEquatable<ushort>, IParsable<ushort>, ISpanParsable<ushort>, System.Numerics.IAdditionOperators<ushort,ushort,ushort>, System.Numerics.IAdditiveIdentity<ushort,ushort>, System.Numerics.IBinaryInteger<ushort>, System.Numerics.IBinaryNumber<ushort>, System.Numerics.IBitwiseOperators<ushort,ushort,ushort>, System.Numerics.IComparisonOperators<ushort,ushort,bool>, System.Numerics.IDecrementOperators<ushort>, System.Numerics.IDivisionOperators<ushort,ushort,ushort>, System.Numerics.IEqualityOperators<ushort,ushort,bool>, System.Numerics.IIncrementOperators<ushort>, System.Numerics.IMinMaxValue<ushort>, System.Numerics.IModulusOperators<ushort,ushort,ushort>, System.Numerics.IMultiplicativeIdentity<ushort,ushort>, System.Numerics.IMultiplyOperators<ushort,ushort,ushort>, System.Numerics.INumber<ushort>, System.Numerics.INumberBase<ushort>, System.Numerics.IShiftOperators<ushort,int,ushort>, System.Numerics.ISubtractionOperators<ushort,ushort,ushort>, System.Numerics.IUnaryNegationOperators<ushort,ushort>, System.Numerics.IUnaryPlusOperators<ushort,ushort>, System.Numerics.IUnsignedNumber<ushort>
[System.CLSCompliant(false)]
[System.Serializable]
public struct UInt16 : IComparable, IConvertible, IFormattable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct UInt16 : IComparable, IComparable<ushort>, IConvertible, IEquatable<ushort>, IFormattable
[System.CLSCompliant(false)]
public struct UInt16 : IComparable, IComparable<ushort>, IEquatable<ushort>, IFormattable
[<System.CLSCompliant(false)>]
type uint16 = struct
interface IConvertible
interface IFormattable
[<System.CLSCompliant(false)>]
type uint16 = struct
interface IConvertible
interface IFormattable
interface IParsable<uint16>
interface ISpanFormattable
interface ISpanParsable<uint16>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<uint16>
interface IAdditionOperators<uint16, uint16, uint16>
interface IAdditiveIdentity<uint16, uint16>
interface IBinaryInteger<uint16>
interface IBinaryNumber<uint16>
interface IBitwiseOperators<uint16, uint16, uint16>
interface IComparisonOperators<uint16, uint16, bool>
interface IEqualityOperators<uint16, uint16, bool>
interface IDecrementOperators<uint16>
interface IDivisionOperators<uint16, uint16, uint16>
interface IIncrementOperators<uint16>
interface IModulusOperators<uint16, uint16, uint16>
interface IMultiplicativeIdentity<uint16, uint16>
interface IMultiplyOperators<uint16, uint16, uint16>
interface INumber<uint16>
interface INumberBase<uint16>
interface ISubtractionOperators<uint16, uint16, uint16>
interface IUnaryNegationOperators<uint16, uint16>
interface IUnaryPlusOperators<uint16, uint16>
interface IShiftOperators<uint16, int, uint16>
interface IMinMaxValue<uint16>
interface IUnsignedNumber<uint16>
[<System.CLSCompliant(false)>]
type uint16 = struct
interface IConvertible
interface ISpanFormattable
interface IFormattable
[<System.CLSCompliant(false)>]
type uint16 = struct
interface IConvertible
interface IFormattable
interface IParsable<uint16>
interface ISpanFormattable
interface ISpanParsable<uint16>
interface IAdditionOperators<uint16, uint16, uint16>
interface IAdditiveIdentity<uint16, uint16>
interface IBinaryInteger<uint16>
interface IBinaryNumber<uint16>
interface IBitwiseOperators<uint16, uint16, uint16>
interface IComparisonOperators<uint16, uint16, bool>
interface IEqualityOperators<uint16, uint16, bool>
interface IDecrementOperators<uint16>
interface IDivisionOperators<uint16, uint16, uint16>
interface IIncrementOperators<uint16>
interface IModulusOperators<uint16, uint16, uint16>
interface IMultiplicativeIdentity<uint16, uint16>
interface IMultiplyOperators<uint16, uint16, uint16>
interface INumber<uint16>
interface INumberBase<uint16>
interface ISubtractionOperators<uint16, uint16, uint16>
interface IUnaryNegationOperators<uint16, uint16>
interface IUnaryPlusOperators<uint16, uint16>
interface IShiftOperators<uint16, int, uint16>
interface IMinMaxValue<uint16>
interface IUnsignedNumber<uint16>
[<System.CLSCompliant(false)>]
type uint16 = struct
interface IConvertible
interface IFormattable
interface IParsable<uint16>
interface ISpanFormattable
interface ISpanParsable<uint16>
interface IAdditionOperators<uint16, uint16, uint16>
interface IAdditiveIdentity<uint16, uint16>
interface IBinaryInteger<uint16>
interface IBinaryNumber<uint16>
interface IBitwiseOperators<uint16, uint16, uint16>
interface IComparisonOperators<uint16, uint16, bool>
interface IEqualityOperators<uint16, uint16, bool>
interface IDecrementOperators<uint16>
interface IDivisionOperators<uint16, uint16, uint16>
interface IIncrementOperators<uint16>
interface IModulusOperators<uint16, uint16, uint16>
interface IMultiplicativeIdentity<uint16, uint16>
interface IMultiplyOperators<uint16, uint16, uint16>
interface INumber<uint16>
interface INumberBase<uint16>
interface ISubtractionOperators<uint16, uint16, uint16>
interface IUnaryNegationOperators<uint16, uint16>
interface IUnaryPlusOperators<uint16, uint16>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<uint16>
interface IShiftOperators<uint16, int, uint16>
interface IMinMaxValue<uint16>
interface IUnsignedNumber<uint16>
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type uint16 = struct
interface IFormattable
interface IConvertible
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type uint16 = struct
interface IFormattable
interface IConvertible
[<System.CLSCompliant(false)>]
type uint16 = struct
interface IFormattable
Public Structure UInt16
Implements IComparable, IComparable(Of UShort), IConvertible, IEquatable(Of UShort), IFormattable
Public Structure UInt16
Implements IAdditionOperators(Of UShort, UShort, UShort), IAdditiveIdentity(Of UShort, UShort), IBinaryInteger(Of UShort), IBinaryNumber(Of UShort), IBitwiseOperators(Of UShort, UShort, UShort), IComparable(Of UShort), IComparisonOperators(Of UShort, UShort, Boolean), IConvertible, IDecrementOperators(Of UShort), IDivisionOperators(Of UShort, UShort, UShort), IEqualityOperators(Of UShort, UShort, Boolean), IEquatable(Of UShort), IIncrementOperators(Of UShort), IMinMaxValue(Of UShort), IModulusOperators(Of UShort, UShort, UShort), IMultiplicativeIdentity(Of UShort, UShort), IMultiplyOperators(Of UShort, UShort, UShort), INumber(Of UShort), INumberBase(Of UShort), IParsable(Of UShort), IShiftOperators(Of UShort, Integer, UShort), ISpanParsable(Of UShort), ISubtractionOperators(Of UShort, UShort, UShort), IUnaryNegationOperators(Of UShort, UShort), IUnaryPlusOperators(Of UShort, UShort), IUnsignedNumber(Of UShort), IUtf8SpanParsable(Of UShort)
Public Structure UInt16
Implements IComparable, IComparable(Of UShort), IConvertible, IEquatable(Of UShort), ISpanFormattable
Public Structure UInt16
Implements IAdditionOperators(Of UShort, UShort, UShort), IAdditiveIdentity(Of UShort, UShort), IBinaryInteger(Of UShort), IBinaryNumber(Of UShort), IBitwiseOperators(Of UShort, UShort, UShort), IComparable(Of UShort), IComparisonOperators(Of UShort, UShort, Boolean), IConvertible, IDecrementOperators(Of UShort), IDivisionOperators(Of UShort, UShort, UShort), IEqualityOperators(Of UShort, UShort, Boolean), IEquatable(Of UShort), IIncrementOperators(Of UShort), IMinMaxValue(Of UShort), IModulusOperators(Of UShort, UShort, UShort), IMultiplicativeIdentity(Of UShort, UShort), IMultiplyOperators(Of UShort, UShort, UShort), INumber(Of UShort), INumberBase(Of UShort), IParsable(Of UShort), IShiftOperators(Of UShort, Integer, UShort), ISpanParsable(Of UShort), ISubtractionOperators(Of UShort, UShort, UShort), IUnaryNegationOperators(Of UShort, UShort), IUnaryPlusOperators(Of UShort, UShort), IUnsignedNumber(Of UShort)
Public Structure UInt16
Implements IComparable, IConvertible, IFormattable
Public Structure UInt16
Implements IComparable, IComparable(Of UShort), IEquatable(Of UShort), IFormattable
- Herança
- Atributos
- Implementações
-
IComparable IComparable<UInt16> IConvertible IEquatable<UInt16> IFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<UInt16> IParsable<TSelf> ISpanFormattable ISpanParsable<UInt16> ISpanParsable<TSelf> IUtf8SpanFormattable IUtf8SpanParsable<UInt16> IUtf8SpanParsable<TSelf> IAdditionOperators<UInt16,UInt16,UInt16> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<UInt16,UInt16> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<UInt16> IBinaryNumber<UInt16> IBinaryNumber<TSelf> IBitwiseOperators<UInt16,UInt16,UInt16> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<UInt16,UInt16,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<UInt16> IDecrementOperators<TSelf> IDivisionOperators<UInt16,UInt16,UInt16> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<UInt16,UInt16,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<UInt16> IIncrementOperators<TSelf> IMinMaxValue<UInt16> IModulusOperators<UInt16,UInt16,UInt16> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<UInt16,UInt16> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<UInt16,UInt16,UInt16> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<UInt16> INumber<TSelf> INumberBase<UInt16> INumberBase<TSelf> IShiftOperators<UInt16,Int32,UInt16> IShiftOperators<TSelf,Int32,TSelf> ISubtractionOperators<UInt16,UInt16,UInt16> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<UInt16,UInt16> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<UInt16,UInt16> IUnaryPlusOperators<TSelf,TSelf> IUnsignedNumber<UInt16>
Observações
O UInt16 tipo de valor representa inteiros sem sinal com valores que variam de 0 a 65535.
Importante
O UInt16 tipo não é compatível com CLS. O tipo alternativo compatível com CLS é Int32. Int16 pode ser usado em vez disso para substituir um UInt16 valor que varia de zero a Int16.MaxValue. Para mais informações sobre conformidade com CLS, consulte Independência da Linguagem e Componentes Language-Independent.
A UInt16 estrutura fornece métodos para comparar instâncias deste tipo, converter o valor de uma instância para a sua representação de cadeias e converter a representação em cadeia de um número para uma instância deste tipo.
Para informações sobre como os códigos de especificação de formato controlam a representação de cadeias dos tipos de valor, veja Tipos de Formatação.
Campos
| Name | Description |
|---|---|
| MaxValue |
Representa o maior valor possível de UInt16. Este campo é constante. |
| MinValue |
Representa o menor valor possível de UInt16. Este campo é constante. |
Métodos
| Name | Description |
|---|---|
| Clamp(UInt16, UInt16, UInt16) |
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(UInt16) |
Compara esta instância com um inteiro não assinado especificado de 16 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(UInt16, UInt16) |
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(UInt16) |
Devolve um valor que indica se esta instância é igual a um valor especificado UInt16 . |
| GetHashCode() |
Devolve o código de hash para esta instância. |
| GetTypeCode() | |
| IsEvenInteger(UInt16) |
Determina se um valor representa um número inteiro par. |
| IsOddInteger(UInt16) |
Determina se um valor representa um número inteiro ímpar. |
| IsPow2(UInt16) |
Determina se um valor é uma potência de dois. |
| LeadingZeroCount(UInt16) |
Calcula o número de zeros à esquerda num valor. |
| Log10(UInt16) |
Representa um inteiro sem sinal de 16 bits. |
| Log2(UInt16) |
Calcula o log2 de um valor. |
| Max(UInt16, UInt16) |
Compara dois valores para calcular qual é maior. |
| Min(UInt16, UInt16) |
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 16 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 16 bits. |
| Parse(String, NumberStyles, IFormatProvider) |
Converte a representação da cadeia de um número num estilo especificado e formato específico de cultura para o seu equivalente inteiro sem sinal de 16 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 16 bits. Este método não é compatível com CLS. A alternativa compatível com CLS é Parse(String, NumberStyles). |
| Parse(String) |
Converte a representação da cadeia de um número para o seu equivalente inteiro sem sinal de 16 bits. |
| PopCount(UInt16) |
Calcula o número de bits que estão definidos num valor. |
| RotateLeft(UInt16, Int32) |
Roda um valor deixado por uma determinada quantia. |
| RotateRight(UInt16, Int32) |
Roda um valor exatamente por uma determinada quantia. |
| Sign(UInt16) |
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(UInt16) |
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 de número curto sem sinal no intervalo fornecido de caracteres. |
| TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt16) |
Tenta separar um intervalo de caracteres UTF-8 num valor. |
| TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt16) |
Tenta separar um intervalo de caracteres UTF-8 num valor. |
| TryParse(ReadOnlySpan<Byte>, UInt16) |
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 16 bits. |
| TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt16) |
Tenta separar um intervalo de caracteres num valor. |
| TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt16) |
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 16 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou. |
| TryParse(ReadOnlySpan<Char>, UInt16) |
Tenta converter a representação em expansão de um número para o seu equivalente inteiro sem sinal de 16 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou. |
| TryParse(String, IFormatProvider, UInt16) |
Tenta analisar uma cadeia num valor. |
| TryParse(String, NumberStyles, IFormatProvider, UInt16) |
Tenta converter a representação da cadeia de um número num estilo especificado e formato específico de cultura para o seu equivalente inteiro sem sinal de 16 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou. |
| TryParse(String, UInt16) |
Tenta converter a representação em cadeia de um número para o seu equivalente inteiro sem sinal de 16 bits. Um valor de retorno indica se a conversão teve sucesso ou falhou. |
Implementações de Interface Explícita
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.