GetColumnOrdinals

HRESULT GetColumnOrdinals(
ULONG *pOrdinals, 
const DBID* pdbColIDs, 
ULONG cColIDs);

Parameters

pOrdinals

Caller-allocated array. This array must have at least cColIDs number of elements.

pdbColIDs

Array of DBID for the column IDs whose ordinals are requested.

cColIDs

The number of elements in pdbColIDs.

Return Code

S_OK

 Method succeeded.

E_FAIL

Returned if the object is not attached.

Comments

Uses IColumnInfo::MapColumnIDs to fill in the given ULONG array with column ordinals for each of the column IDs given by the DBID array.