: ScopeRuleCollection.CreateUrlRule (Método) (Microsoft.Office.Server.Search.Administration)
Creates a scope rule based on the display URL of the content item.
Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
Sintaxis
'Declaración
Public Function CreateUrlRule ( _
filterBehavior As ScopeRuleFilterBehavior, _
urlRuleType As UrlScopeRuleType, _
matchingText As String _
) As UrlScopeRule
'Uso
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
)
Parámetros
- 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.
Valor devuelto
A UrlScopeRule object.
Vea también
Referencia
ScopeRuleCollection (Clase)
ScopeRuleCollection (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)