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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Dichiarazione
Public MustOverride Function GetCount As Integer
'Utilizzo
Dim instance As Declarations
Dim returnValue As Integer

returnValue = instance.GetCount()
public abstract int GetCount()
public:
virtual int GetCount() abstract
abstract GetCount : unit -> int 
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.

.NET Framework Security

See Also

Reference

Declarations Class

Declarations Members

Microsoft.VisualStudio.Package Namespace