ScopeRuleCollection.CreateUrlRule Method
Creates a scope rule based on the display URL of the content item.
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
public UrlScopeRule CreateUrlRule( ScopeRuleFilterBehavior filterBehavior, UrlScopeRuleType urlRuleType, string matchingText )
Parameters
- filterBehavior
- Type: Microsoft.Office.Server.Search.Administration.ScopeRuleFilterBehavior
A value from the ScopeRuleFilterBehavior enumeration specifying the filter behavior for the scope rule.
- urlRuleType
- Type: Microsoft.Office.Server.Search.Administration.UrlScopeRuleType
A value from the UrlScopeRuleType enumeration specifying the URL scope rule type.
- matchingText
- Type: System.String
A string containing the text to match to the display URL for the scope rule.