GetInt16Array(string)
This method returns the short[] value of the specified VECTOR column.
Declaration
// C#
public short[] GetInt16Array(string name);Parameters
-
nameThe specified column name.
Return Value
The short[] value of the column. A sparse vector type column will return the array value as a dense vector.
Exceptions
InvalidOperationException - The connection is closed, the reader is closed, Read() has not been called, or all rows have been read.
IndexOutOfRangeException - Unable to find specified column in result set.
InvalidCastException - The accessor method is invalid for this column type or the column value is NULL.
Remarks
IsDBNull should be called to check for NULL values before calling this method. This method cannot be called on BINARY format vector columns.