Int32.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);
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

這個參數已忽略。This parameter is ignored.

傳回

DateTime

不支援此轉換。This conversion is not supported. 沒有傳回值。No value is returned.

實作

例外狀況

在所有情況下。In all cases.

適用於