ScopeRuleCollection.CreateUrlRule Method
Creates a scope rule based on the display URL of the content item.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function CreateUrlRule ( _
filterBehavior As ScopeRuleFilterBehavior, _
urlRuleType As UrlScopeRuleType, _
matchingText As String _
) As UrlScopeRule
'Usage
Dim instance As ScopeRuleCollection
Dim filterBehavior As ScopeRuleFilterBehavior
Dim urlRuleType As UrlScopeRuleType
Dim matchingText As String
Dim returnValue As UrlScopeRule
returnValue = instance.CreateUrlRule(filterBehavior, _
urlRuleType, matchingText)
public UrlScopeRule CreateUrlRule(
ScopeRuleFilterBehavior filterBehavior,
UrlScopeRuleType urlRuleType,
string matchingText
)
Parameters
filterBehavior
Type: Microsoft.Office.Server.Search.Administration.ScopeRuleFilterBehaviorA value from the ScopeRuleFilterBehavior enumeration specifying the filter behavior for the scope rule.
urlRuleType
Type: Microsoft.Office.Server.Search.Administration.UrlScopeRuleTypeA value from the UrlScopeRuleType enumeration specifying the URL scope rule type.
matchingText
Type: System.StringA string containing the text to match to the display URL for the scope rule.
Return Value
Type: Microsoft.Office.Server.Search.Administration.UrlScopeRule
A UrlScopeRule object.