Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
scopeName
Type: System.StringThe name of the Search scope.
consumerId
Type: System.GuidThe 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