Condividi tramite


Declarations.GetName(Int32) Method

Definition

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

public:
 abstract System::String ^ GetName(int index);
public:
 abstract Platform::String ^ GetName(int index);
 abstract std::wstring GetName(int index);
public abstract string GetName (int index);
abstract member GetName : int -> string
Public MustOverride Function GetName (index As Integer) As String

Parameters

index
Int32

[in] The index of the item for which to get the name.

Returns

If successful, returns the name of the item; otherwise, returns null.

Remarks

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.

Applies to