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