SqlDataReader.GetInt64(Int32) Método
Definição
Obtém o valor da coluna especificada como um inteiro com sinal de 64 bits.Gets the value of the specified column as a 64-bit signed integer.
public:
override long GetInt64(int i);
public:
virtual long GetInt64(int i);
public override long GetInt64 (int i);
public long GetInt64 (int i);
override this.GetInt64 : int -> int64
abstract member GetInt64 : int -> int64
override this.GetInt64 : int -> int64
Public Overrides Function GetInt64 (i As Integer) As Long
Public Function GetInt64 (i As Integer) As Long
Parâmetros
- i
- 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 inteiro com sinal de 64 bits.No conversions are performed; therefore, the data retrieved must already be a 64-bit signed integer.
Chame IsDBNull para verificar se há valores nulos antes de chamar este método.Call IsDBNull to check for null values before calling this method.