bool CODataSource::GetProperty(const GUID& guidPropertySet, DBPROPID nPropID, VARIANT* pVariant);

Return Value

        true if successful; otherwise false.

Parameters

        [in] guidPropertySet:

                A GUID that identifies a group of properties.

        [in] nPropID:

                A property ID which belongs to the property set identified by guidPropertySet.

        [out] pVariant:

                A pointer to a VARIANT data buffer which receives returned property value.

Remarks

        This function can be used for retrieving various property values, but commonly used to retrieve data source information. It originates from IDBProperties::GetProperties. For how to use it, see the example OleRead.

CODataSource Class Overview & Class Members