Skip to content

Latest commit

 

History

History
117 lines (76 loc) · 3.34 KB

carrayrowset-class.md

File metadata and controls

117 lines (76 loc) · 3.34 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CArrayRowset Class
CArrayRowset Class
11/04/2016
ATL.CArrayRowset<TAccessor>
ATL.CArrayRowset
CArrayRowset
ATL::CArrayRowset
ATL::CArrayRowset<TAccessor>
ATL::CArrayRowset::CArrayRowset
CArrayRowset.CArrayRowset
ATL.CArrayRowset.CArrayRowset
ATL.CArrayRowset<TAccessor>.CArrayRowset
CArrayRowset::CArrayRowset
CArrayRowset<TAccessor>::CArrayRowset
ATL::CArrayRowset<TAccessor>::CArrayRowset
CArrayRowset<TAccessor>.Snapshot
ATL::CArrayRowset::Snapshot
Snapshot
CArrayRowset<TAccessor>::Snapshot
ATL.CArrayRowset.Snapshot
ATL.CArrayRowset<TAccessor>.Snapshot
ATL::CArrayRowset<TAccessor>::Snapshot
CArrayRowset::Snapshot
CArrayRowset.Snapshot
CArrayRowset::operator[]
CArrayRowset.operator[]
ATL::CArrayRowset::m_nRowsRead
ATL::CArrayRowset<TAccessor>::m_nRowsRead
CArrayRowset<TAccessor>::m_nRowsRead
ATL.CArrayRowset<TAccessor>.m_nRowsRead
CArrayRowset.m_nRowsRead
m_nRowsRead
ATL.CArrayRowset.m_nRowsRead
CArrayRowset::m_nRowsRead
CArrayRowset class
CArrayRowset class, constructor
Snapshot method
operator [], arrays
[] operator
operator[], arrays
m_nRowsRead
511427e1-73ca-4fd8-9ba1-ae9463557cb6

CArrayRowset Class

Accesses elements of a rowset using array syntax.

Syntax

template < class TAccessor >
class CArrayRowset :
   public CVirtualBuffer <TAccessor>,
   protected CBulkRowset <TAccessor>

Parameters

TAccessor
The type of accessor class that you want the rowset to use.

Requirements

Header: atldbcli.h

Members

Methods

Name Description
CArrayRowset Constructor.
Snapshot Reads the entire rowset into memory.

Operators

Name Description
operator[] Accesses an element of the rowset.

Data Members

Name Description
CArrayRowset::m_nRowsRead The number of rows already read.

CArrayRowset::CArrayRowset

Creates a new CArrayRowset object.

Syntax

CArrayRowset(int nMax = 100000);

Parameters

nMax
[in] Maximum number of rows in the rowset.

CArrayRowset::Snapshot

Reads the entire rowset into memory, creating an image or snapshot of it.

Syntax

HRESULT Snapshot() throw();

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.

CArrayRowset::m_nRowsRead

Contains the number of rows in the rowset that have already been read.

Syntax

ULONG m_nRowsRead;

See also

OLE DB Consumer Templates
OLE DB Consumer Templates Reference
CRowset Class