Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 2.51 KB

File metadata and controls

81 lines (54 loc) · 2.51 KB
title ISessionPropertiesImpl Class
ms.date 11/04/2016
f1_keywords
ISessionPropertiesImpl
ISessionPropertiesImpl::GetProperties
ISessionPropertiesImpl.GetProperties
GetProperties
ISessionPropertiesImpl.SetProperties
SetProperties
ISessionPropertiesImpl::SetProperties
helpviewer_keywords
ISessionPropertiesImpl class
GetProperties method
SetProperties method
ms.assetid ca0ba254-c7dc-4c52-abec-cf895a0c6a63

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

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