DBNull.IConvertible.ToBoolean(IFormatProvider) Método

Definição

Não há suporte para esta conversão.This conversion is not supported. A tentativa de fazer essa conversão gera uma InvalidCastException.Attempting to make this conversion throws an InvalidCastException.

 virtual bool System.IConvertible.ToBoolean(IFormatProvider ^ provider) = IConvertible::ToBoolean;
bool IConvertible.ToBoolean (IFormatProvider provider);
abstract member System.IConvertible.ToBoolean : IFormatProvider -> bool
override this.System.IConvertible.ToBoolean : IFormatProvider -> bool
Function ToBoolean (provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean

Parâmetros

provider
IFormatProvider

Um objeto que implementa a interface do IFormatProvider.An object that implements the IFormatProvider interface. (Este parâmetro não é usado; especifique null.)(This parameter is not used; specify null.)

Retornos

Boolean

Nenhum.None. O valor de retorno desse membro não é usado.The return value for this member is not used.

Implementações

Exceções

Não há suporte para essa conversão no tipo DBNull.This conversion is not supported for the DBNull type.

Aplica-se a

Confira também