IDataSource::getDataMemberName

Returns the name of a well-known data member.

HRESULT getDataMember (
longlIndex
DataMember*pbstrDM);

Parameters

lIndex

[in]
An index into the list of data member names.

pbstrDM

[out]
A string that describes the data member name. This string is interpreted as case-insensitive.

Return Codes

S_OK
The method succeeded.

E_FAIL
A provider-specific error occurred.

Comments

A zero-based index parameter is specified. The index must fall between 0 and getDataMemberCount - 1, or this method returns E_FAIL. The default data member ("") should never be returned from this method.