Condividi tramite


Declarations.GetCount Method

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

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

Syntax

'Declaration
Public MustOverride Function GetCount As Integer
public abstract int GetCount()
public:
virtual int GetCount() abstract
abstract GetCount : unit -> int
public abstract function GetCount() : int

Return Value

Type: 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.

.NET Framework Security

See Also

Reference

Declarations Class

Microsoft.VisualStudio.Package Namespace