ISessionPropertiesImpl 类
提供 ISessionProperties 接口的实现。
语法
template <class T, class PropClass = T>
class ATL_NO_VTABLE ISessionPropertiesImpl :
public ISessionProperties,
public CUtlProps<PropClass>
参数
T
你的类,派生自 ISessionPropertiesImpl
。
PropClass
默认为 T 的用户定义属性类。
要求
标头: atldb.h
成员
接口方法
名称 | 描述 |
---|---|
GetProperties | 返回会话属性组中当前在会话中设置的属性列表。 |
SetProperties | 设置会话属性组中的属性。 |
备注
会话上的必需接口。 此类通过调用由属性集映射定义的静态函数来实现会话属性。 属性集映射应在会话类中指定。
ISessionPropertiesImpl::GetProperties
返回 DBPROPSET_SESSION
属性组中当前在会话中设置的属性列表。
语法
STDMETHOD(GetProperties)(ULONG cPropertyIDSets,
const DBPROPIDSET rgPropertyIDSets[],
ULONG * pcPropertySets,
DBPROPSET ** prgPropertySets);
参数
请参阅 OLE DB 程序员参考中的 ISessionProperties::GetProperties。
ISessionPropertiesImpl::SetProperties
设置 DBPROPSET_SESSION
属性组中的属性。
语法
STDMETHOD(SetProperties)(ULONG cPropertySets,
DBPROPSET rgPropertySets[]);
参数
请参阅 OLE DB 程序员参考中的 ISessionProperties::SetProperties。