Share via


SearchServiceApplication.GetScopesCount Method

Retrieves the count of all SearchScopes that are defined in the SearchAdminDatabase.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function GetScopesCount As Integer
'Usage
Dim instance As SearchServiceApplication
Dim returnValue As Integer

returnValue = instance.GetScopesCount()
public int GetScopesCount()

Return Value

Type: System.Int32
The count of all SearchScopes.

Implements

ISearchSiteAdministrationServiceApplication.GetScopesCount()

Remarks

This method retrieves the count of all SearchScopes in the SearchAdminDatabase.

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace