OleDbDataReader.GetInt16(Int32) Método

Definición

Obtiene el valor de la columna especificada como un entero de 16 bits con signo.Gets the value of the specified column as a 16-bit signed integer.

public:
 override short GetInt16(int ordinal);
public:
 virtual short GetInt16(int ordinal);
public override short GetInt16 (int ordinal);
public short GetInt16 (int ordinal);
override this.GetInt16 : int -> int16
abstract member GetInt16 : int -> int16
override this.GetInt16 : int -> int16
Public Overrides Function GetInt16 (ordinal As Integer) As Short
Public Function GetInt16 (ordinal As Integer) As Short

Parámetros

ordinal
Int32

Índice de la columna de base cero.The zero-based column ordinal.

Devoluciones

Int16

El valor de la columna especificada.The value of the specified column.

Implementaciones

Excepciones

La conversión especificada no es válida.The specified cast is not valid.

Comentarios

No se realizan conversiones; por lo tanto, los datos recuperados deben ser un entero con signo de 16 bits.No conversions are performed; therefore, the data retrieved must already be a 16-bit signed integer.

Llame IsDBNull a para buscar valores NULL antes de llamar a este método.Call IsDBNull to look for null values before calling this method.

Se aplica a