String.IConvertible.ToByte(IFormatProvider) Método
Definição
Para obter uma descrição desse membro, confira ToByte(IFormatProvider).For a description of this member, see ToByte(IFormatProvider).
virtual System::Byte System.IConvertible.ToByte(IFormatProvider ^ provider) = IConvertible::ToByte;
byte IConvertible.ToByte (IFormatProvider provider);
abstract member System.IConvertible.ToByte : IFormatProvider -> byte
override this.System.IConvertible.ToByte : IFormatProvider -> byte
Function ToByte (provider As IFormatProvider) As Byte Implements IConvertible.ToByte
Parâmetros
- provider
- IFormatProvider
Um objeto que fornece informações de formatação específicas de cultura.An object that provides culture-specific formatting information.
Retornos
O valor convertido do objeto String atual.The converted value of the current String object.
Implementações
Exceções
O valor do objeto String atual não pode ser analisado.The value of the current String object cannot be parsed.
O valor do objeto String atual é um número maior que MaxValue ou menor que MinValue.The value of the current String object is a number greater than MaxValue or less than MinValue.
Comentários
Este membro é uma implementação do membro de interface explícita.This member is an explicit interface member implementation. Ele só pode ser usado quando a instância de String é convertida em uma interface de IConvertible.It can be used only when the String instance is cast to an IConvertible interface. A alternativa recomendada é chamar o Convert.ToByte(String, IFormatProvider) método.The recommended alternative is to call the Convert.ToByte(String, IFormatProvider) method.