Export (0) Print
Expand All
Expand Minimize

SearchServiceApplication.AddRule method

Adds a new Search scope rule to the SearchAdminDatabase.

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

public int AddRule(
	RuleInfo ruleInfo,
	int scopeId
)

Parameters

ruleInfo
Type: Microsoft.Office.Server.Search.Administration.RuleInfo

The information about the new Search scope rule.

scopeId
Type: System.Int32

The ID of the specified Search scope.

Return value

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

Implements

ISearchSiteAdministrationServiceApplication.AddRule(RuleInfo, Int32)

This method adds a new Search scope rule to the specified Search scope to the SearchAdminDatabase.

Show:
© 2015 Microsoft