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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.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)
Syntax
‘선언
Public MustOverride Function GetCount As Integer
public abstract int GetCount()
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.