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

定義

使用指定的格式,格式化目前執行個體的值。Formats the value of the current instance using the specified format.

 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

要使用的格式。The format to use.

-或--or- 若要使用為 IFormattable 實作類型所定義的預設格式,則為 Null 參考 (在 Visual Basic 中為 Nothing)。A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider IFormatProvider IFormatProvider

要用來格式化值的提供者。The provider to use to format the value.

-或--or- Null 參考 (在 Visual Basic 中為 Nothing),用於取得作業系統目前地區設定中的數值格式資訊。A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

傳回

目前執行個體的值,使用指定的格式。The value of the current instance in the specified format.

實作

適用於

另請參閱