다음을 통해 공유


SearchServiceApplicationProxy.GetScopesCount Method

Retrieves the number of all Search scopes that are defined in the Search administration database.

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 SearchServiceApplicationProxy
Dim returnValue As Integer

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

Return Value

Type: System.Int32
The number of all Search scopes.

Implements

ISearchSiteAdministrationServiceApplication.GetScopesCount()

Exceptions

Exception Condition
Exception

An error occurred during application execution.

Remarks

This method retrieves the number of all Search scopes in the Search administration database for the SearchServiceApplicationProxy.

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace