Uri.IFormattable.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 Visual Basic) 中的參考 (Nothing ,以使用為實作類型 IFormattable 定義的預設格式。

formatProvider
IFormatProvider

用於格式化值的提供者。 -或- null Visual Basic) 中的參考 (Nothing ,從操作系統目前的地區設定取得數值格式資訊。

傳回

採用指定格式之目前執行個體的值。

實作

適用於