IDataRecord.GetDateTime(Int32) メソッド

定義

指定されたフィールドの日付と時刻のデータ値を取得します。

public:
 DateTime GetDateTime(int i);
public DateTime GetDateTime (int i);
abstract member GetDateTime : int -> DateTime
Public Function GetDateTime (i As Integer) As DateTime

パラメーター

i
Int32

検索するフィールドのインデックス。

戻り値

DateTime

指定したフィールドの日時のデータ値。

例外

渡されたインデックスは 0 から FieldCount の範囲外にあります。

適用対象