Version.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

使用する書式。
または
IFormattable 実装の型に対して定義されている既定の書式を使用する場合は null 参照 (Visual Basic では Nothing)。

formatProvider
IFormatProvider

値の書式設定に使用するプロバイダーです。

  • または -
    オペレーティング null システムの現在Visual Basic設定から数値形式情報を取得する参照 ( の場合 Nothing )。

戻り値

String

指定された書式の現在のインスタンスの値。

実装

適用対象