Enum.IConvertible.ToDateTime(IFormatProvider) 方法

定义

根据基础类型将当前值转换为 DateTimeConverts the current value to a DateTime based on the underlying type.

 virtual DateTime System.IConvertible.ToDateTime(IFormatProvider ^ provider) = IConvertible::ToDateTime;
DateTime IConvertible.ToDateTime (IFormatProvider provider);
abstract member System.IConvertible.ToDateTime : IFormatProvider -> DateTime
override this.System.IConvertible.ToDateTime : IFormatProvider -> DateTime
Function ToDateTime (provider As IFormatProvider) As DateTime Implements IConvertible.ToDateTime

参数

provider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。An object that supplies culture-specific formatting information.

返回

此成员总是引发异常。This member always throws an exception.

实现

例外

在所有情况下。In all cases.

注解

当前未实现。Currently not implemented. 将始终引发异常。Always throws an exception.

适用于