ICommandPropertiesImpl Class

Provides an implementation of the ICommandProperties interface.

Syntax

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

Parameters

T
Your class, derived from

PropClass
Your properties class.

Requirements

Header: atldb.h

Members

Interface Methods

Name Description
GetProperties Returns the list of properties in the Rowset property group that are currently requested for the rowset.
SetProperties Sets properties in the Rowset property group.

Remarks

This is mandatory on commands. The implementation is provided by a static function defined by the BEGIN_PROPSET_MAP macro.

ICommandPropertiesImpl::GetProperties

Returns all the requested property sets using the command's property map.

Syntax

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

Parameters

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

Remarks

See BEGIN_PROPSET_MAP.

ICommandPropertiesImpl::SetProperties

Sets properties for the command object.

Syntax

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

Parameters

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

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture