다음을 통해 공유


ScopeRuleCollection.CreatePropertyQueryRule Method (ScopeRuleFilterBehavior, ManagedProperty, String)

Creates a scope rule based on a managed property value.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function CreatePropertyQueryRule ( _
    filterBehavior As ScopeRuleFilterBehavior, _
    property As ManagedProperty, _
    value As String _
) As PropertyQueryScopeRule
'Usage
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
)

Parameters

  • value
    Type: System.String

    A string containing the managed property value for the scope rule.

Return Value

Type: Microsoft.Office.Server.Search.Administration.PropertyQueryScopeRule

See Also

Reference

ScopeRuleCollection Class

ScopeRuleCollection Members

CreatePropertyQueryRule Overload

Microsoft.Office.Server.Search.Administration Namespace