Share via


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

  • matchingText
    Type: System.String

    A 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.

See Also

Reference

ScopeRuleCollection Class

ScopeRuleCollection Members

Microsoft.Office.Server.Search.Administration Namespace