IConvertible.ToString(IFormatProvider) IConvertible.ToString(IFormatProvider) IConvertible.ToString(IFormatProvider) IConvertible.ToString(IFormatProvider) Method

定義

使用指定的特定文化特性之格式資訊,將這個執行個體的值轉換為相等的 StringConverts the value of this instance to an equivalent String using the specified culture-specific formatting information.

public:
 System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
abstract member ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String

參數

provider
IFormatProvider IFormatProvider IFormatProvider IFormatProvider

IFormatProvider 介面實作,提供特定文化特性的格式資訊。An IFormatProvider interface implementation that supplies culture-specific formatting information.

傳回

String 執行個體,等於這個執行個體的值。A String instance equivalent to the value of this instance.

適用於