Enum.IConvertible.ToBoolean(IFormatProvider) 方法

定义

根据基础类型将当前值转换为布尔值。Converts the current value to a Boolean value based on the underlying type.

 virtual bool System.IConvertible.ToBoolean(IFormatProvider ^ provider) = IConvertible::ToBoolean;
bool IConvertible.ToBoolean (IFormatProvider provider);
Function ToBoolean (provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean

参数

provider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。An object that supplies culture-specific formatting information.

返回

此成员总是引发异常。This member always throws an exception.

实现

异常

在所有情况下。In all cases.

注解

当前未实现。Currently not implemented. 将始终引发异常。Always throws an exception.

适用于