Declarations::GetName Method (Int32)
Visual Studio 2015
When implemented in a derived class, gets the name or text to be inserted for the specified item.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- index
-
Type:
System::Int32
[in] The index of the item for which to get the name.
Return Value
Type: System::String^If successful, returns the name of the item; otherwise, returns null.
The name of the item is what is searched for as the user types characters and is what is inserted into the source when the user types a completion character. The name is not necessarily the same as what is displayed in the list. However, the name is what is searched on when the GetBestMatch method is called so the displayed text should at the very least contain the name of the item.
Show: