FormattableString.ToString FormattableString.ToString FormattableString.ToString FormattableString.ToString Method

定義

傳回將複合格式字串及其引數格式化所產生的字串。Returns the string that results from formatting the composite format string along with its arguments.

多載

ToString() ToString() ToString() ToString()

傳回使用目前文化特性 (Culture) 的格式化慣例將複合格式字串及其引數格式化所產生的字串。Returns the string that results from formatting the composite format string along with its arguments by using the formatting conventions of the current culture.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

傳回使用指定文化特性 (Culture) 的格式化慣例將複合格式字串及其引數格式化所產生的字串。Returns the string that results from formatting the composite format string along with its arguments by using the formatting conventions of a specified culture.

ToString() ToString() ToString() ToString()

傳回使用目前文化特性 (Culture) 的格式化慣例將複合格式字串及其引數格式化所產生的字串。Returns the string that results from formatting the composite format string along with its arguments by using the formatting conventions of the current culture.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

傳回

使用目前文化特性 (Culture) 的慣例格式化的結果字串。A result string formatted by using the conventions of the current culture.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

傳回使用指定文化特性 (Culture) 的格式化慣例將複合格式字串及其引數格式化所產生的字串。Returns the string that results from formatting the composite format string along with its arguments by using the formatting conventions of a specified culture.

public:
 abstract System::String ^ ToString(IFormatProvider ^ formatProvider);
public abstract string ToString (IFormatProvider formatProvider);
override this.ToString : IFormatProvider -> string
Public MustOverride Function ToString (formatProvider As IFormatProvider) As String

參數

formatProvider
IFormatProvider IFormatProvider IFormatProvider IFormatProvider

物件,提供特定文化特性格式資訊。An object that provides culture-specific formatting information.

傳回

使用 formatProvider 的慣例格式化的結果字串。A result string formatted by using the conventions of formatProvider.

適用於