Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 2.31 KB

File metadata and controls

68 lines (44 loc) · 2.31 KB
description Learn more about: IRowsetCreatorImpl Class
title IRowsetCreatorImpl Class
ms.date 11/04/2016
f1_keywords
ATL::IRowsetCreatorImpl
ATL.IRowsetCreatorImpl
ATL::IRowsetCreatorImpl<T>
ATL.IRowsetCreatorImpl<T>
IRowsetCreatorImpl
IRowsetCreatorImpl.SetSite
IRowsetCreatorImpl<T>::SetSite
IRowsetCreatorImpl::SetSite
SetSite
ATL.IRowsetCreatorImpl.SetSite
ATL::IRowsetCreatorImpl<T>::SetSite
ATL::IRowsetCreatorImpl::SetSite
ATL.IRowsetCreatorImpl<T>.SetSite
helpviewer_keywords
IRowsetCreatorImpl class
SetSite method
ms.assetid 92cc950f-7978-4754-8d9a-defa63867d82

IRowsetCreatorImpl Class

Performs the same functions as IObjectWithSite but also enables the OLE DB properties DBPROPCANSCROLLBACKWARDS DBPROPCANFETCHBACKWARDS.

Syntax

template < class T >
class ATL_NO_VTABLE IRowsetCreatorImpl
   : public IObjectWithSiteImpl< T >

Parameters

T
A class derived from IRowsetCreator.

Requirements

Header: atldb.h

Members

Methods

Name Description
SetSite Sets the site that contains the rowset object.

Remarks

This class inherits from IObjectWithSite and overrides IObjectWithSite::SetSite. When a provider command or session object creates a rowset, it calls QueryInterface on the rowset object looking for IObjectWithSite and calls SetSite passing the rowset object's IUnkown interface as the site interface.

IRowsetCreatorImpl::SetSite

Sets the site that contains the rowset object. For more information, see IObjectWithSite::SetSite.

Syntax

STDMETHOD(SetSite )(IUnknown* pCreator);

Parameters

pCreator
[in] Pointer to the IUnknown interface pointer of the site managing the rowset object.

Return Value

A standard HRESULT.

Remarks

In addition, IRowsetCreatorImpl::SetSite enables the OLE DB DBPROPCANSCROLLBACKWARDS DBPROPCANFETCHBACKWARDS properties.

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture