ColumnCount property

Returns the number of columns in the cursor.

Syntax
Visual Basic
Public Readonly Property ColumnCount As Short
C#
public short ColumnCount { get;}
Property value

The number of columns in the cursor or 0 if the cursor schema is closed.

Remarks

Column IDs range from 0 to ColumnCount-1, inclusive.

Column IDs and count might change during a schema upgrade. To correctly identify a column, access it by name or refresh the cached IDs and counts after a schema upgrade.

See also