UInt16.IConvertible.ToInt32(IFormatProvider) UInt16.IConvertible.ToInt32(IFormatProvider) UInt16.IConvertible.ToInt32(IFormatProvider) Method

定義

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

 virtual int System.IConvertible.ToInt32(IFormatProvider ^ provider) = IConvertible::ToInt32;
int IConvertible.ToInt32 (IFormatProvider provider);
Function ToInt32 (provider As IFormatProvider) As Integer Implements IConvertible.ToInt32

參數

provider
IFormatProvider IFormatProvider IFormatProvider

這個參數已忽略。This parameter is ignored.

傳回

這個執行個體的值,已轉換成 Int32The value of this instance, converted to an Int32.

實作

備註

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

適用於