DateTime.IConvertible.ToDateTime(IFormatProvider) DateTime.IConvertible.ToDateTime(IFormatProvider) DateTime.IConvertible.ToDateTime(IFormatProvider) Method

定义

返回当前 DateTime 对象。Returns the current DateTime object.

 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 IFormatProvider IFormatProvider

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

返回

当前对象。The current object.

实现

适用于