Freigeben über


ScopeRuleCollection.CreateUrlRule-Methode

Eine Bereichsregel basierend auf der angezeigten URL des Inhaltselements erstellt.

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
)

Parameter

  • matchingText
    Typ: System.String

    Eine Zeichenfolge mit dem Text der Anzeige-URL für die Bereichsregel zuzuordnen.

Rückgabewert

Typ: Microsoft.Office.Server.Search.Administration.UrlScopeRule
Ein UrlScopeRule -Objekt.

Siehe auch

Referenz

ScopeRuleCollection Klasse

ScopeRuleCollection-Member

Microsoft.Office.Server.Search.Administration-Namespace