Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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