String.IConvertible.ToChar(IFormatProvider) 方法

定義

如需這個成員的說明,請參閱 ToChar(IFormatProvider)For a description of this member, see ToChar(IFormatProvider).

 virtual char System.IConvertible.ToChar(IFormatProvider ^ provider) = IConvertible::ToChar;
char IConvertible.ToChar (IFormatProvider provider);
Function ToChar (provider As IFormatProvider) As Char Implements IConvertible.ToChar

參數

provider
IFormatProvider

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

傳回

目前 String 物件中位於索引 0 的字元。The character at index 0 in the current String object.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 String 執行個體轉換成 IConvertible 介面時,才能使用這個成員。It can be used only when the String instance is cast to an IConvertible interface. 建議的替代做法是呼叫 Convert.ToChar(String, IFormatProvider) 方法。The recommended alternative is to call the Convert.ToChar(String, IFormatProvider) method.

適用於