Boolean.IConvertible.ToChar(IFormatProvider) 方法

定義

不支援此轉換。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

參數

provider
IFormatProvider

這個參數已忽略。This parameter is ignored.

傳回

Char

不支援此轉換。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.

適用於