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 number of scope rules for the specified scope.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<OperationContractAttribute> _
Function GetRulesCount ( _
scopeId As Integer, _
<OutAttribute> ByRef statusCode As Integer _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim scopeId As Integer
Dim statusCode As Integer
Dim returnValue As Integer
returnValue = instance.GetRulesCount(scopeId, _
statusCode)
[OperationContractAttribute]
int GetRulesCount(
int scopeId,
out int statusCode
)
Parameters
scopeId
Type: System.Int32The ID of the Scope object.
statusCode
Type: System.Int32The execution status.
Return Value
Type: System.Int32
The count of the ScopeRule searches that match the Scope.
Remarks
Implementing classes should ensure that the value of the scopeId parameter must not be null .
Implementing classes should set statusCode to 0 to indicate successful execution and 1 otherwise.
See Also
Reference
ISearchSiteAdministrationServiceApplication Interface