Skip to content

Latest commit

 

History

History
93 lines (73 loc) · 3.22 KB

File metadata and controls

93 lines (73 loc) · 3.22 KB
title IOpenRowsetImpl Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.technology
cpp-data
ms.topic reference
f1_keywords
IOpenRowsetImpl
IOpenRowsetImpl.CreateRowset
IOpenRowsetImpl::CreateRowset
CreateRowset
OpenRowset
IOpenRowsetImpl::OpenRowset
IOpenRowsetImpl.OpenRowset
dev_langs
C++
helpviewer_keywords
IOpenRowsetImpl class
CreateRowset method
OpenRowset method
ms.assetid d259cedc-1db4-41cf-bc9f-5030907ab486
author mikeblome
ms.author mblome
ms.workload
cplusplus
data-storage

IOpenRowsetImpl Class

Provides implementation for the IOpenRowset interface.

Syntax

template <class SessionClass>  
class IOpenRowsetImpl : public IOpenRowset  

Parameters

SessionClass
Your class, derived from IOpenRowsetImpl.

Requirements

Header: atldb.h

Members

Methods

CreateRowset Creates a rowset object. Not called directly by user.
OpenRowset Opens and returns a rowset that includes all rows from a single base table or index. (Not in ATLDB.H)

Remarks

The IOpenRowset interface is mandatory for a session object. It opens and returns a rowset that includes all rows from a single base table or index.

IOpenRowsetImpl::CreateRowset

Creates a rowset object. Not called directly by user. See IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.

Syntax

template template <class RowsetClass>  
HRESULT CreateRowset(IUnknown* pUnkOuter,  
   DBID* pTableID,  
   DBID* pIndexID,  
   REFIID riid,  
   ULONG cPropertySets,  
   DBPROPSET rgPropertySets[],  
   IUnknown** ppRowset,  
   RowsetClass*& pRowsetObj);  

Parameters

RowsetClass
A template class member representing the user's rowset class. Usually generated by the wizard.

pRowsetObj
[out] A pointer to a rowset object. Typically this parameter is not used, but it can be used if you must perform more work on the rowset before passing it to a COM object. The lifetime of pRowsetObj is bound by ppRowset.

For other parameters, see IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.

IOpenRowsetImpl::OpenRowset

Opens and returns a rowset that includes all rows from a single base table or index.

Syntax

HRESULT OpenRowset(IUnknown* pUnkOuter,  
   DBID* pTableID,  
   DBID* pIndexID,  
   REFIID riid,  
   ULONG cPropertySets,  
   DBPROPSET rgPropertySets[],  
   IUnknown** ppRowset);  

Parameters

See IOpenRowset::OpenRowset in the OLE DB Programmer's Reference.

Remarks

This method is not found in ATLDB.H. It is created by the ATL Object Wizard when you create a provider.

See Also

OLE DB Provider Templates
OLE DB Provider Template Architecture