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.

適用於