GetColumnName method

Returns the name of the

colOrdinalInIndex'th column in this index.

Syntax
Visual Basic

Public Function GetColumnName( _
   ByVal colOrdinalInIndex As Short _
) As String
C#

public string  GetColumnName(
   short colOrdinalInIndex
);
Parameters
  • colOrdinalInIndex   The ordinal of the desired column in the index. The value must be in the range [1,ColumnCount].

Return value

The name of the column.

Remarks

Column ordinals and count may change during a schema upgrade. Column ordinals from an index are different than the column IDs in a table or another index, even if they refer to the same physical column in a particular table.

See also