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。
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈