Condividi tramite


IVsExpansionFunction.GetListText Method

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)

Syntax

'Dichiarazione
Function GetListText ( _
    iIndex As Integer, _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
'Utilizzo
Dim instance As IVsExpansionFunction
Dim iIndex As Integer
Dim pbstrText As String
Dim returnValue As Integer

returnValue = instance.GetListText(iIndex, _
    pbstrText)
int GetListText(
    int iIndex,
    out string pbstrText
)
int GetListText(
    [InAttribute] int iIndex, 
    [OutAttribute] String^% pbstrText
)
abstract GetListText : 
        iIndex:int * 
        pbstrText:string byref -> int 
function GetListText(
    iIndex : int, 
    pbstrText : String
) : int

Parameters

  • iIndex
    Type: System.Int32
    [in] The index of the value to retrieve.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

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

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

.NET Framework Security

See Also

Reference

IVsExpansionFunction Interface

IVsExpansionFunction Members

Microsoft.VisualStudio.TextManager.Interop Namespace