RepeatBehavior.IFormattable.ToString(String, IFormatProvider) 方法

定义

有关此成员的说明,请参见 ToString(String, IFormatProvider)

 virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ formatProvider) = IFormattable::ToString;
string IFormattable.ToString (string format, IFormatProvider formatProvider);
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (format As String, formatProvider As IFormatProvider) As String Implements IFormattable.ToString

参数

format
String

指定要使用格式的字符串,若为 null 则表示使用为 IFormattable 实现的类型定义的默认格式。

formatProvider
IFormatProvider

一个对象,它提供值的格式设置信息;若为 null,则表示要获取当前区域性中的数字格式信息。

返回

一个字符串,包含采用指定格式的当前实例的值。

实现

注解

此结构表示Windows 运行时 (WinRT) RepeatBehavior结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 RepeatBehavior

适用于