Decimal.IConvertible.ToDateTime(IFormatProvider) 方法

定义

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

 virtual DateTime System.IConvertible.ToDateTime(IFormatProvider ^ provider) = IConvertible::ToDateTime;
DateTime IConvertible.ToDateTime (IFormatProvider provider);
Function ToDateTime (provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime

参数

provider
IFormatProvider

忽略此参数。This parameter is ignored.

返回

无。None. 不支持此转换。This conversion is not supported.

实现

异常

在所有情况下。In all cases.

适用于