Boolean.IConvertible.ToChar(IFormatProvider) Boolean.IConvertible.ToChar(IFormatProvider) Boolean.IConvertible.ToChar(IFormatProvider) Method

定义

不支持此转换。This conversion is not supported. 尝试使用此方法将引发 InvalidCastExceptionAttempting to use this method throws an InvalidCastException.

 virtual char System.IConvertible.ToChar(IFormatProvider ^ provider) = IConvertible::ToChar;
char IConvertible.ToChar (IFormatProvider provider);
Function ToChar (provider As IFormatProvider) As Char Implements IConvertible.ToChar

参数

provider
IFormatProvider IFormatProvider IFormatProvider

忽略此参数。This parameter is ignored.

返回

不支持此转换。This conversion is not supported. 不返回任何值。No value is returned.

实现

异常

你试图将 Boolean 值转换为 Char 值。You attempt to convert a Boolean value to a Char value. 不支持此转换。This conversion is not supported.

适用于