INames::GetName Method
Returns the name of the name and selector pair at the specified index position.
HRESULT GetName (
long index,
BSTR* name
);
Parameters
index
[in] Specifies the index position of the name and selector pair in the INames Interface object. This index is zero-based.name
[out] Returns the name.
Return Value
If the method succeeds, it returns S_OK. If the result is the empty string or NULL, it returns S_FALSE. Otherwise, returns an error code.
Remarks
The name in a name/selector pair corresponds to the identifier to the left of the separator. For example, in myclass.m_variable, myclass is the name while the "." is the selector.