Char.IConvertible.ToInt16(IFormatProvider) Method

Definition

有关此成员的说明,请参见 ToInt16(IFormatProvider)For a description of this member, see ToInt16(IFormatProvider).

 virtual short System.IConvertible.ToInt16(IFormatProvider ^ provider) = IConvertible::ToInt16;
short IConvertible.ToInt16 (IFormatProvider provider);
abstract member System.IConvertible.ToInt16 : IFormatProvider -> int16
override this.System.IConvertible.ToInt16 : IFormatProvider -> int16
Function ToInt16 (provider As IFormatProvider) As Short Implements IConvertible.ToInt16

Parameters

provider
IFormatProvider

该参数将被忽略。This parameter is ignored.

Returns

Int16

当前 Char 对象的转换值。The converted value of the current Char object.

Implements

Remarks

此成员是显式接口成员实现。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. 建议的替代项是改为调用 Convert.ToInt16(Char) 方法。The recommended alternative is to call the Convert.ToInt16(Char) method instead.

Applies to