--- description: "Learn more about: IGetDataSourceImpl Class" title: "IGetDataSourceImpl Class" ms.date: "11/04/2016" f1_keywords: ["IGetDataSourceImpl", "ATL.IGetDataSourceImpl", "ATL.IGetDataSourceImpl", "ATL::IGetDataSourceImpl", "ATL::IGetDataSourceImpl", "GetDataSource", "IGetDataSourceImpl.GetDataSource", "IGetDataSourceImpl::GetDataSource"] helpviewer_keywords: ["IGetDataSourceImpl class", "GetDataSource method"] ms.assetid: d63f3178-d663-4f01-8c09-8aab2dd6805a --- # IGetDataSourceImpl Class Provides an implementation of the [IGetDataSource](/previous-versions/windows/desktop/ms709721(v=vs.85)) object. ## Syntax ```cpp template class ATL_NO_VTABLE IGetDataSourceImpl : public IGetDataSource ``` ### Parameters *T*
Your class, derived from `IGetDataSourceImpl`. ## Requirements **Header:** atldb.h ## Members ### Interface Methods | Name | Description | |-|-| |[GetDataSource](#getdatasource)|Returns an interface pointer on the data source object that created the session.| ## Remarks This is a mandatory interface on the session for obtaining an interface pointer to the data source object. ## IGetDataSourceImpl::GetDataSource Returns an interface pointer on the data source object that created the session. ### Syntax ```cpp STDMETHOD(GetDataSource)(REFIID riid, IUnknown ** ppDataSource); ``` #### Parameters See [IGetDataSource::GetDataSource](/previous-versions/windows/desktop/ms725443(v=vs.85)) in the *OLE DB Programmer's Reference*. ### Remarks Useful if you need to access properties in the data source object. ## See also [OLE DB Provider Templates](../../data/oledb/ole-db-provider-templates-cpp.md)
[OLE DB Provider Template Architecture](../../data/oledb/ole-db-provider-template-architecture.md)