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.

適用於