IConvertible.ToDecimal(IFormatProvider) 方法

定義

利用指定的文化特定格式資訊,將此實例的值轉換為等效 Decimal 數字。

public:
 System::Decimal ToDecimal(IFormatProvider ^ provider);
public decimal ToDecimal(IFormatProvider provider);
public decimal ToDecimal(IFormatProvider? provider);
abstract member ToDecimal : IFormatProvider -> decimal
Public Function ToDecimal (provider As IFormatProvider) As Decimal

參數

provider
IFormatProvider

一個 IFormatProvider 介面實作,提供特定文化的格式化資訊。

傳回

一個 Decimal 等同於此實例值的數字。

適用於