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

定義

如需這個成員的說明,請參閱 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,指定要使用的格式。The 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,用來格式化數值。The IFormatProvider to use to format the value.

-或--or- null (在 Visual Basic 中為 Nothing),用來取得作業系統之目前地區設定 (Locale) 的數值格式資訊。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. 只有在 DoubleCollection 執行個體轉換成 IFormattable 介面時,才能使用這個成員。It can be used only when the DoubleCollection instance is cast to an IFormattable interface.

適用於