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.
Retrieves the count of the SearchScopeRule objects defined for a specified SearchScope in the SearchServiceApplication.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetRulesCount ( _
scopeId As Integer, _
<OutAttribute> ByRef statusCode As Integer _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim scopeId As Integer
Dim statusCode As Integer
Dim returnValue As Integer
returnValue = instance.GetRulesCount(scopeId, _
statusCode)
public int GetRulesCount(
int scopeId,
out int statusCode
)
Parameters
scopeId
Type: System.Int32The ID of the SearchScope.
statusCode
Type: System.Int32The status code of method execution, where 0 indicates successful execution, and 1 indicates that the Search scope with the specified ID was not found.
Return Value
Type: System.Int32
The count of the ScopeRule searches that match the Scope.
Implements
ISearchSiteAdministrationServiceApplication.GetRulesCount(Int32, Int32)
Remarks
This value of the scopeId parameter must not be null .
See Also
Reference
SearchServiceApplication Class