DateTime.IConvertible.ToDecimal(IFormatProvider) DateTime.IConvertible.ToDecimal(IFormatProvider) DateTime.IConvertible.ToDecimal(IFormatProvider) Method

定义

不支持此转换。This conversion is not supported. 尝试使用此方法将引发 InvalidCastExceptionAttempting to use this method throws an InvalidCastException.

 virtual System::Decimal System.IConvertible.ToDecimal(IFormatProvider ^ provider) = IConvertible::ToDecimal;
decimal IConvertible.ToDecimal (IFormatProvider provider);
Function ToDecimal (provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal

参数

provider
IFormatProvider IFormatProvider IFormatProvider

一个实现 IFormatProvider 接口的对象。An object that implements the IFormatProvider interface. (未使用此参数;指定 null。)(This parameter is not used; specify null.)

返回

未使用此成员的返回值。The return value for this member is not used.

实现

异常

适用于