Share via


ISearchSiteAdministrationServiceApplication.GetRulesCount method

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

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

ISearchSiteAdministrationServiceApplication members

Microsoft.Office.Server.Search.Administration namespace