다음을 통해 공유


SearchServiceApplication.GetScopeRowCount Method

Returns the count 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 SearchServiceApplication
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 count of the results matching the specified Search scope.

Implements

ISearchSiteAdministrationServiceApplication.GetScopeRowCount(String, Guid)

Remarks

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

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace