SearchServiceApplicationProxy.GetVisibleScopesCount method
Gets the count of all visible scopes defined in the Search application.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetVisibleScopesCount As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
Dim returnValue As Integer
returnValue = instance.GetVisibleScopesCount()
public int GetVisibleScopesCount()
Return value
Type: System.Int32
The count of all visible Search scopes.
Implements
ISearchSiteAdministrationServiceApplication.GetVisibleScopesCount()
Exceptions
Exception | Condition |
---|---|
Exception | An error occurred during application execution. |
Remarks
This method throws an exception if the user does not have administrative permissions to the Search application.
See also
Reference
SearchServiceApplicationProxy class