IConvertible.ToInt32(IFormatProvider) 方法

定義

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

public:
 int ToInt32(IFormatProvider ^ provider);
public int ToInt32 (IFormatProvider provider);
abstract member ToInt32 : IFormatProvider -> int
Public Function ToInt32 (provider As IFormatProvider) As Integer

參數

provider
IFormatProvider

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

傳回

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

適用於