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等效于此实例的值的数字。

适用于