Share via


ICommandPropertiesImpl 类

提供 ISessionProperties 接口的实现。

语法

template <class T, class PropClass = T>
class ATL_NO_VTABLE ICommandPropertiesImpl
   : public ICommandProperties, public CUtlProps<PropClass>

参数

T
派生的类

PropClass
属性类。

要求

标头: atldb.h

成员

接口方法

名称 描述
GetProperties 返回 Rowset 属性组中当前为行集请求的属性列表。
SetProperties 设置 Rowset 属性组中的属性。

注解

它是命令上必需的内容。 该实现由 BEGIN_PROPSET_MAP 宏定义的静态函数提供。

ICommandPropertiesImpl::GetProperties

使用命令的属性映射返回所有请求的属性集。

语法

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

参数

请参阅“OLE DB 程序员参考”中的 ICommandProperties::GetProperties

注解

请参阅 BEGIN_PROPSET_MAP

ICommandPropertiesImpl::SetProperties

设置命令对象的属性。

语法

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

参数

请参阅“OLE DB 程序员参考”中的 ICommandProperties::SetProperties

另请参阅

OLE DB 提供程序模板
OLE DB 提供程序模板体系结构