Partager via


ExpansionFunction.GetListCount Method

Gets the number of items in the list of values for the expansion function.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function GetListCount ( _
    <OutAttribute> ByRef iListCount As Integer _
) As Integer
public virtual int GetListCount(
    out int iListCount
)
public:
virtual int GetListCount(
    [OutAttribute] int% iListCount
)
abstract GetListCount : 
        iListCount:int byref -> int  
override GetListCount : 
        iListCount:int byref -> int
public function GetListCount(
    iListCount : int
) : int

Parameters

  • iListCount
    Type: Int32%

    [out] Returns the number of items in the list.

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsExpansionFunction.GetListCount(Int32%)

Remarks

This method is an implementation of the GetListCount method on the IVsExpansionFunction method.

The base method returns the count of items returned from a call to the GetIntellisenseList method. The base method always returns a success code of S_OK.

.NET Framework Security

See Also

Reference

ExpansionFunction Class

Microsoft.VisualStudio.Package Namespace