Boolean.IConvertible.ToString(IFormatProvider) 方法
定义
使用指定的区域性特定格式设置信息将此实例的值转换为等效的字符串。Converts the value of this instance to an equivalent string using the specified culture-specific formatting information.
virtual System::String ^ System.IConvertible.ToString(IFormatProvider ^ provider) = IConvertible::ToString;
string IConvertible.ToString (IFormatProvider provider);
abstract member System.IConvertible.ToString : IFormatProvider -> string
override this.System.IConvertible.ToString : IFormatProvider -> string
Function ToString (provider As IFormatProvider) As String Implements IConvertible.ToString
参数
- provider
- IFormatProvider
一个提供区域性特定的格式设置信息的对象。An object that supplies culture-specific formatting information.
返回
与此实例的值等效的字符串实例。A string instance equivalent to the value of this instance.
实现
注解
此成员是显式接口成员的实现。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.