SearchServiceApplicationProxy.GetScopeRowCount method

Returns the number of results that match a specified Search scope.

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

Syntax

'Declaration
Public Function GetScopeRowCount ( _
    scopeName As String, _
    consumerId As Guid _
) As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
Dim scopeName As String
Dim consumerId As Guid
Dim returnValue As Integer

returnValue = instance.GetScopeRowCount(scopeName, _
    consumerId)
public int GetScopeRowCount(
    string scopeName,
    Guid consumerId
)

Parameters

  • consumerId
    Type: System.Guid

    The ID of the site collection that is defined as a consumer of the Search scope.

Return value

Type: System.Int32
The number of the results matching the specified Search scope.

Implements

ISearchSiteAdministrationServiceApplication.GetScopeRowCount(String, Guid)

Exceptions

Exception Condition
Exception

An error occurred during application execution.

Remarks

This method returns the number of results matching the specified Search scope for the specified site collection.

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace