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
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 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