VectorCollection.IFormattable.ToString(String, IFormatProvider) VectorCollection.IFormattable.ToString(String, IFormatProvider) VectorCollection.IFormattable.ToString(String, IFormatProvider) Method

定义

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

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

参数

format
String String String

指定要使用的格式的 StringThe String specifying the format to use.

-or- 如果为 null(在 Visual Basic 中为 Nothing),则使用为 IFormattable 实现的类型定义的默认格式。null (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider IFormatProvider IFormatProvider

用于格式化该值的 IFormatProviderThe IFormatProvider to use to format the value.

-or- 如果为 null(在 Visual Basic 中为 Nothing),则从操作系统的当前区域设置中获取数字信息。null (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

返回

一个 String,包含具有指定格式的当前实例的值。A String containing the value of the current instance in the specified format.

实现

注解

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

适用于