Char.IConvertible.ToString(IFormatProvider) 方法

定義

使用指定限定文化特性的格式資訊,將此執行個體的值轉換為相等字串。Converts the value of this instance to an equivalent string, using the specified culture-specific formatting information.

 virtual System::String ^ System.IConvertible.ToString(IFormatProvider ^ provider) = IConvertible::ToString;
string IConvertible.ToString (IFormatProvider provider);
abstract member System.IConvertible.ToString : IFormatProvider -> string
override this.System.IConvertible.ToString : IFormatProvider -> string
Function ToString (provider As IFormatProvider) As String Implements IConvertible.ToString

參數

provider
IFormatProvider

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

傳回

String

與此執行個體值相等的字串。A string equivalent to the value of this instance.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 Char 執行個體轉換成 IConvertible 介面時,才能使用這個成員。It can be used only when the Char instance is cast to an IConvertible interface.

適用於