IConvertible.ToBoolean(IFormatProvider) 方法

定義

使用指定的特定文化特性 (Culture) 之格式資訊,將這個執行個體的值轉換為相等的布林 (Boolean) 值。Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.

public:
 bool ToBoolean(IFormatProvider ^ provider);
public bool ToBoolean (IFormatProvider provider);
abstract member ToBoolean : IFormatProvider -> bool
Public Function ToBoolean (provider As IFormatProvider) As Boolean

參數

provider
IFormatProvider

IFormatProvider 介面實作,提供特定文化特性的格式資訊。An IFormatProvider interface implementation that supplies culture-specific formatting information.

傳回

布林值,等於這個執行個體的值。A Boolean value equivalent to the value of this instance.

適用於