ExpansionFunction::GetListText Method (Int32, String^)

 

Gets the value of the specified list item.

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

public:
virtual int GetListText(
	int iIndex,
	[OutAttribute] String^% ppszText
)

Parameters

iIndex
Type: System::Int32

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

ppszText
Type: System::String^

[out] Returns the value of the requested list item.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

This method is an implementation of the GetListText method on the IVsExpansionFunction interface.

The base method returns the requested value from the list as returned from the GetIntellisenseList method. If the list does not exist, the base method returns null for the string. The base method always returns a success code of S_OK. Note: if the index is out of range, an exception is thrown.

Return to top
Show: