ScopeRule 构造函数 (Microsoft.Office.Server.Search.Administration)

Initializes a new instance of the ScopeRule class.

命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
Protected Sub New ( _
    parentScope As Scope, _
    filterBehavior As ScopeRuleFilterBehavior, _
    ruleType As ScopeRuleType, _
    urlRuleType As UrlScopeRuleType, _
    property As ManagedProperty, _
    userValue As String _
)
用法
Dim parentScope As Scope
Dim filterBehavior As ScopeRuleFilterBehavior
Dim ruleType As ScopeRuleType
Dim urlRuleType As UrlScopeRuleType
Dim property As ManagedProperty
Dim userValue As String

Dim instance As New ScopeRule(parentScope, filterBehavior, ruleType, urlRuleType, property, userValue)
protected ScopeRule (
    Scope parentScope,
    ScopeRuleFilterBehavior filterBehavior,
    ScopeRuleType ruleType,
    UrlScopeRuleType urlRuleType,
    ManagedProperty property,
    string userValue
)

参数

  • parentScope
    A Scope object representing the scope rule's parent scope.
  • ruleType
    A value from the ScopeRuleType enumeration specifying the type of scope rule.
  • urlRuleType
    A value from the UrlScopeRuleType enumeration specifying the type of URL scope rule.
  • property
  • userValue
    A string specifying a managed property value to use for the scope rule.

另请参阅

参考

ScopeRule 类
ScopeRule 成员
Microsoft.Office.Server.Search.Administration 命名空间