Redigera

Dela via


IDBCreateSessionImpl Class

Provides an implementation for the IDBCreateSession interface.

Syntax

template <class T, class SessionClass>
class ATL_NO_VTABLE IDBCreateSessionImpl
   : public IDBCreateSession

Parameters

T
YOUR CLASS, DERIVED FROM

SessionClass
The session object.

Requirements

Header: atldb.h

Members

Interface Methods

Name Description
CreateSession Creates a new session from the data source object and returns the requested interface on the newly created session.

Remarks

A mandatory interface on data source objects.

IDBCreateSessionImpl::CreateSession

Creates a new session from the data source object and returns the requested interface on the newly created session.

Syntax

STDMETHOD(CreateSession)(IUnknown * pUnkOuter,
   REFIID riid,
   IUnknown ** ppDBSession);

Parameters

See IDBCreateSession::CreateSession in the OLE DB Programmer's Reference.

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture