ScopeRuleCollection.CreateUrlRule, méthode (Microsoft.Office.Server.Search.Administration)
Creates a scope rule based on the display URL of the content item.
Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)
Syntaxe
'Déclaration
Public Function CreateUrlRule ( _
filterBehavior As ScopeRuleFilterBehavior, _
urlRuleType As UrlScopeRuleType, _
matchingText As String _
) As UrlScopeRule
'Utilisation
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
)
Paramètres
- filterBehavior
A value from the ScopeRuleFilterBehavior enumeration specifying the filter behavior for the scope rule.
- urlRuleType
A value from the UrlScopeRuleType enumeration specifying the URL scope rule type.
- matchingText
A string containing the text to match to the display URL for the scope rule.
Valeur de retour
A UrlScopeRule object.
Voir aussi
Référence
ScopeRuleCollection, classe
Membres ScopeRuleCollection
Microsoft.Office.Server.Search.Administration, espace de noms