Declarations::GetName Method (Int32)

 

When implemented in a derived class, gets the name or text to be inserted for the specified item.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual String^ GetName(
	int index
) abstract

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.

Return to top
Show: