Enum.IConvertible.ToInt16(IFormatProvider) 方法

定义

根据基础类型将当前值转换为 16 位有符号整数。Converts the current value to a 16-bit signed integer based on the underlying type.

 virtual short System.IConvertible.ToInt16(IFormatProvider ^ provider) = IConvertible::ToInt16;
short IConvertible.ToInt16 (IFormatProvider provider);
Function ToInt16 (provider As IFormatProvider) As Short Implements IConvertible.ToInt16

参数

provider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。An object that supplies culture-specific formatting information.

返回

转换后的值。The converted value.

实现

注解

使用 Convert 执行转换。Uses Convert to perform the conversion.

适用于