String.IConvertible.ToString(IFormatProvider) 方法

定义

有关此成员的说明,请参见 ToString(IFormatProvider)For a description of this member, see ToString(IFormatProvider).

 virtual System::String ^ System.IConvertible.ToString(IFormatProvider ^ provider) = IConvertible::ToString;
string IConvertible.ToString (IFormatProvider provider);
Function ToString (provider As IFormatProvider) As String Implements IConvertible.ToString

参数

provider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。An object that supplies culture-specific formatting information.

-or-

若为 null,则使用当前区域性的格式设置约定。null to use the formatting conventions of the current culture.

返回

与此实例的值等效的 String 实例。A String instance equivalent to the value of this instance.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 实例被强制转换为 接口时使用。It can be used only when the instance is cast to an interface.

适用于