Classe ICommandPropertiesImpl
Fornisce un'implementazione dell'interfaccia ICommandProperties .
Sintassi
template <class T, class PropClass = T>
class ATL_NO_VTABLE ICommandPropertiesImpl
: public ICommandProperties, public CUtlProps<PropClass>
Parametri
T
Classe, derivata da
PropClass
Classe delle proprietà.
Requisiti
Intestazione: atldb.h
Membri
Metodi di interfaccia
Nome | Descrizione |
---|---|
GetProperties | Restituisce l'elenco delle proprietà nel gruppo di proprietà Rowset attualmente richiesto per il set di righe. |
SetProperties | Imposta le proprietà nel gruppo di proprietà Set di righe. |
Osservazioni:
Questo è obbligatorio per i comandi. L'implementazione viene fornita da una funzione statica definita dalla macro BEGIN_PROPSET_MAP .
ICommandPropertiesImpl::GetProperties
Restituisce tutti i set di proprietà richiesti utilizzando la mappa delle proprietà del comando.
Sintassi
STDMETHOD(GetProperties)(const ULONG cPropertyIDSets,
const DBPROPIDSET rgPropertyIDSets[],
ULONG * pcPropertySets,
DBPROPSET ** prgPropertySets);
Parametri
Vedere ICommandProperties::GetProperties nella guida di riferimento per programmatori OLE DB.
Osservazioni:
Vedere BEGIN_PROPSET_MAP.
ICommandPropertiesImpl::SetProperties
Imposta le proprietà per l'oggetto comando.
Sintassi
STDMETHOD(SetProperties)(ULONG cPropertySets,
DBPROPSET rgPropertySets[]);
Parametri
Vedere ICommandProperties::SetProperties nella guida di riferimento per programmatori OLE DB.
Vedi anche
Modelli di provider OLE DB
Architettura dei modelli di provider OLE DB