Share via


ISearchSiteAdministrationServiceApplication.GetScopeRowCount method

Retrieves the number of Search scopes with the specified name in the specified site collection.

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

Syntax

'Declaration
<OperationContractAttribute> _
Function GetScopeRowCount ( _
    scopeName As String, _
    consumerId As Guid _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim scopeName As String
Dim consumerId As Guid
Dim returnValue As Integer

returnValue = instance.GetScopeRowCount(scopeName, _
    consumerId)
[OperationContractAttribute]
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 results matching the specified Search scope.

Remarks

This method retrieves the number of results matching the specified Search scopes with the specified name in the specified site collection.

See also

Reference

ISearchSiteAdministrationServiceApplication interface

ISearchSiteAdministrationServiceApplication members

Microsoft.Office.Server.Search.Administration namespace