OleDbDataReader.GetDateTime(Int32) Método
Definição
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
Parâmetros
- ordinal
- Int32
O ordinal da coluna baseado em zero.The zero-based column ordinal.
Retornos
O valor da coluna especificada.The value of the specified column.
Implementações
Exceções
A conversão especificada não é válida.The specified cast is not valid.
Comentários
Nenhuma conversões é executada; Portanto, os dados recuperados já devem ser um DateTime objeto.No conversions are performed; therefore, the data retrieved must already be a DateTime object.
Chame IsDBNull para procurar valores nulos antes de chamar este método.Call IsDBNull to look for null values before calling this method.