Item

This property obtains the element in an OracleSparseVector at the specified index.

Declaration

// C#
public object this [long index] {get;}

Parameters

index

The zero-based index of the element to get from the OracleSparseVector

Property Value

An object value of short, float, or double at the specified index depending on the sparse vector's numeric format.

Exceptions

OracleNullValueException - The current instance has a null value.

ArgumentOutOfRangeException - Index is less than zero or index is equal to or greater than number of dimensions.

ObjectDisposedException - The object is already disposed.

Remarks

This property's return type varies depending on the sparse vector's numeric format.

Numeric Format Return Type

OracleDbType.Vector_Int8

short

OracleDbType.Vector_Float32

float

OracleDbType.Vector_Float64

double