IVsExpansionFunction::GetListText Method (Int32, String^)

 

Returns the specified value from a list of values associated with the expansion function.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int GetListText(
	int iIndex,
	[OutAttribute] String^% pbstrText
)

Parameters

iIndex
Type: System::Int32

[in] The index of the value to retrieve.

pbstrText
Type: System::String^

[out] Returns a string that contains the requested value.

Return Value

Type: System::Int32

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

From textmgr2.idl:

void IVsExpansionFunction::GetListText(
   [in]long iIndex,
   [out]const WCHAR** pbstrText
);

The returned string must continue for the life of the expansion function object itself or until the ReleaseFunction method is called.

Return to top
Show: