IConvertible.ToInt16(IFormatProvider) IConvertible.ToInt16(IFormatProvider) IConvertible.ToInt16(IFormatProvider) IConvertible.ToInt16(IFormatProvider) Method

定義

使用指定的特定文化特性之格式資訊,將這個執行個體的值轉換為相等的 16 位元帶正負號的整數。Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.

public:
 short ToInt16(IFormatProvider ^ provider);
public short ToInt16 (IFormatProvider provider);
abstract member ToInt16 : IFormatProvider -> int16
Public Function ToInt16 (provider As IFormatProvider) As Short

參數

provider
IFormatProvider IFormatProvider IFormatProvider IFormatProvider

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

傳回

16 位元帶正負號的整數,相當於這個執行個體的值。An 16-bit signed integer equivalent to the value of this instance.

適用於