Bewerken

Delen via


ISessionPropertiesImpl Class

Provides an implementation of the ISessionProperties interface.

Syntax

template <class T, class PropClass = T>
class ATL_NO_VTABLE ISessionPropertiesImpl :
   public ISessionProperties,
   public CUtlProps<PropClass>

Parameters

T
Your class, derived from ISessionPropertiesImpl.

PropClass
A user-definable property class that defaults to T.

Requirements

Header: atldb.h

Members

Interface Methods

Name Description
GetProperties Returns the list of properties in the Session property group that are currently set on the session.
SetProperties Sets properties in the Session property group.

Remarks

A mandatory interface on sessions. This class implements session properties by calling a static function defined by the property set map. The property set map should be specified in your session class.

ISessionPropertiesImpl::GetProperties

Returns the list of properties in the DBPROPSET_SESSION property group that are currently set on the session.

Syntax

STDMETHOD(GetProperties)(ULONG cPropertyIDSets,
   const DBPROPIDSET rgPropertyIDSets[],
   ULONG * pcPropertySets,
   DBPROPSET ** prgPropertySets);

Parameters

See ISessionProperties::GetProperties in the OLE DB Programmer's Reference.

ISessionPropertiesImpl::SetProperties

Sets properties in the DBPROPSET_SESSION property group.

Syntax

STDMETHOD(SetProperties)(ULONG cPropertySets,
   DBPROPSET rgPropertySets[]);

Parameters

See ISessionProperties::SetProperties in the OLE DB Programmer's Reference.

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture