Partager via


Declarations.GetCount Method

When implemented in a derived class, gets the number of items in the list of declarations.

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

Syntax

Public MustOverride Function GetCount As Integer

Dim instance As Declarations
Dim returnValue As Integer

returnValue = instance.GetCount()
public abstract int GetCount()
public:
virtual int GetCount() abstract
public abstract function GetCount() : int

Return Value

Type: System.Int32

The count of items represented by this Declarations class.

Remarks

How the declarations are stored is dependent on your implementation of the Declarations class. Note, however, that the GetBestMatch method assumes the list is sorted in ascending order.

Permissions

See Also

Reference

Declarations Class

Declarations Members

Microsoft.VisualStudio.Package Namespace