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
ruleInfo
Type: Microsoft.Office.Server.Search.Administration.RuleInfoThe information about the new Search scope rule.
scopeId
Type: System.Int32The 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