Share via


IDeclarations::GetName Method

Returns the specified name of an item in the completion list.

HRESULT GetName ( 
   long index,
   BSTR* name
);

Parameters

  • index
    [in] Index position of the item in the completion list.

  • name
    [out] Return a string containing the name of the item in the completion list. This value cannot be NULL.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Given an index position into your IDeclarations Interface object, return the name of the item at that position.

The index parameter is typically the value returned from the IDeclarations::GetBestMatch Method.

See Also

Reference

IDeclarations Interface

IDeclarations::GetBestMatch Method