description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CArrayRowset Class |
CArrayRowset Class |
11/04/2016 |
|
|
511427e1-73ca-4fd8-9ba1-ae9463557cb6 |
Accesses elements of a rowset using array syntax.
template < class TAccessor >
class CArrayRowset :
public CVirtualBuffer <TAccessor>,
protected CBulkRowset <TAccessor>
TAccessor
The type of accessor class that you want the rowset to use.
Header: atldbcli.h
Name | Description |
---|---|
CArrayRowset | Constructor. |
Snapshot | Reads the entire rowset into memory. |
Name | Description |
---|---|
operator[] |
Accesses an element of the rowset. |
Name | Description |
---|---|
CArrayRowset::m_nRowsRead | The number of rows already read. |
Creates a new CArrayRowset
object.
CArrayRowset(int nMax = 100000);
nMax
[in] Maximum number of rows in the rowset.
Reads the entire rowset into memory, creating an image or snapshot of it.
HRESULT Snapshot() throw();
Provides array-like syntax for accessing a row in the rowset.
TAccessor & operator[](int nrow);
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.
The contents of the requested row.
If nRow exceeds the number of rows in the rowset, an exception is thrown.
Contains the number of rows in the rowset that have already been read.
ULONG m_nRowsRead;
OLE DB Consumer Templates
OLE DB Consumer Templates Reference
CRowset Class