Partager via


ScopeRuleCollection.CreatePropertyQueryRule, méthode (Microsoft.Office.Server.Search.Administration)

Creates a scope rule based on a managed property value.

Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)

Syntaxe

'Déclaration
Public Function CreatePropertyQueryRule ( _
    filterBehavior As ScopeRuleFilterBehavior, _
    property As ManagedProperty, _
    value As String _
) As PropertyQueryScopeRule
'Utilisation
Dim instance As ScopeRuleCollection
Dim filterBehavior As ScopeRuleFilterBehavior
Dim property As ManagedProperty
Dim value As String
Dim returnValue As PropertyQueryScopeRule

returnValue = instance.CreatePropertyQueryRule(filterBehavior, property, value)
public PropertyQueryScopeRule CreatePropertyQueryRule (
    ScopeRuleFilterBehavior filterBehavior,
    ManagedProperty property,
    string value
)

Paramètres

  • filterBehavior
    A value from the ScopeRuleFilterBehavior enumeration specifying the filter behavior for the scope rule.
  • property
    A ManagedProperty object representing the managed property for the scope rule.
  • value
    A string containing the managed property value for the scope rule.

Voir aussi

Référence

ScopeRuleCollection, classe
Membres ScopeRuleCollection
Microsoft.Office.Server.Search.Administration, espace de noms