OleDbDataReader.GetDateTime(Int32) Metoda

Definicja

Pobiera wartość określonej kolumny jako DateTime obiekt.

public:
 override DateTime GetDateTime(int ordinal);
public:
 virtual DateTime GetDateTime(int ordinal);
public override DateTime GetDateTime (int ordinal);
public DateTime GetDateTime (int ordinal);
override this.GetDateTime : int -> DateTime
abstract member GetDateTime : int -> DateTime
override this.GetDateTime : int -> DateTime
Public Overrides Function GetDateTime (ordinal As Integer) As DateTime
Public Function GetDateTime (ordinal As Integer) As DateTime

Parametry

ordinal
Int32

Liczba porządkowa kolumn opartych na zerach.

Zwraca

Wartość określonej kolumny.

Implementuje

Wyjątki

Określona obsada jest nieprawidłowa.

Uwagi

Nie są wykonywane żadne konwersje; w związku z tym pobrane dane muszą już być obiektem DateTime .

Wywołaj metodę IsDBNull , aby wyszukać wartości null przed wywołaniem tej metody.

Dotyczy

Zobacz też