Boolean.IConvertible.ToBoolean(IFormatProvider) 方法

定義

如需這個成員的說明,請參閱 ToBoolean(IFormatProvider)For a description of this member, see ToBoolean(IFormatProvider).

 virtual bool System.IConvertible.ToBoolean(IFormatProvider ^ provider) = IConvertible::ToBoolean;
bool IConvertible.ToBoolean (IFormatProvider provider);
abstract member System.IConvertible.ToBoolean : IFormatProvider -> bool
override this.System.IConvertible.ToBoolean : IFormatProvider -> bool
Function ToBoolean (provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean

參數

provider
IFormatProvider

此參數會被忽略。This parameter is ignored.

傳回

Boolean

truefalsetrue or false.

實作

備註

這個成員是明確的介面成員實作。This member is an explicit interface member implementation. 只有在 Boolean 執行個體轉換成 IConvertible 介面時,才能使用這個成員。It can be used only when the Boolean instance is cast to an IConvertible interface.

適用於