Udostępnij za pośrednictwem


CArrayRowset::operator

 

The latest version of this topic can be found at CArrayRowset::operator.

Provides array-like syntax for accessing a row in the rowset.

Syntax

  
      TAccessor  
      & operator[](  
   int nRow   
);  

Parameters

TAccessor
A templated parameter that specifies the type of accessor stored in the rowset.

nRow
[in] Number of the row (array element) you want to access.

Return Value

The contents of the requested row.

Remarks

If nRow exceeds the number of rows in the rowset, an exception is thrown.

Requirements

Header: atldbcli.h

See Also

CArrayRowset Class