Share via


ISearchSiteAdministrationServiceApplication.AddRule Method

Adds a new rule for a Search scope to the database.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<OperationContractAttribute> _
Function AddRule ( _
    ruleInfo As RuleInfo, _
    scopeId As Integer _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim ruleInfo As RuleInfo
Dim scopeId As Integer
Dim returnValue As Integer

returnValue = instance.AddRule(ruleInfo, _
    scopeId)
[OperationContractAttribute]
int AddRule(
    RuleInfo ruleInfo,
    int scopeId
)

Parameters

  • scopeId
    Type: System.Int32

    The ID of the specified Search scope.

Return Value

Type: System.Int32
The ID of the new Search scope rule.

Remarks

This method adds the new rule for the specified Search scope to the database.

See Also

Reference

ISearchSiteAdministrationServiceApplication Interface

ISearchSiteAdministrationServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace