GetVectorDimensions(string)
This method returns the number of dimensions of the specified VECTOR column.
Declaration
// C#
public long[] GetVectorDimensions(string name);Parameters
name
The specified column name.
Return Value
The number of dimensions of the VECTOR column.
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 also works on VECTOR columns with flex (*) dimensions, and returns the number of dimensions of the vector value in the current row.