GetRowsetProperties

HRESULT GetRowsetProperties(
IUnknown *pRowset, 
const DBPROPID *pPropIDs, 
VARIANT *pValues, 
ULONG cPropIDs);

Parameters

pRowset

Pointer to an IRowset interface. This can be NULL to get properties on the attached rowset. If no rowset is attached, then E_FAIL is returned.

pPropIDs

Array of DBPROPID to request values for.

pValues

Array of variants to receive the values of the requested properties. This array must contain uninitialized variants, because their values are not cleared by this method prior to being set.

cPropIDs

The number of properties to query. This is the size of both pPropIDs and pValues arrays.

Return Code

S_OK

Method succeeded.

E_FAIL 
Returned if the object is not attached.

Comments

Uses IRowsetInfo::GetProperties to retrieve properties for a particular IRowset.