Boolean.IConvertible.ToChar(IFormatProvider) Method

Definition

不支持此转换。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);
abstract member System.IConvertible.ToChar : IFormatProvider -> char
override this.System.IConvertible.ToChar : IFormatProvider -> char
Function ToChar (provider As IFormatProvider) As Char Implements IConvertible.ToChar

Parameters

provider
IFormatProvider

该参数将被忽略。This parameter is ignored.

Returns

Char

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

Implements

Exceptions

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

Applies to