ScopeRule Constructor
Initializes a new instance of the ScopeRule class.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Protected Sub New ( _
parentScope As Scope, _
filterBehavior As ScopeRuleFilterBehavior, _
ruleType As ScopeRuleType, _
urlRuleType As UrlScopeRuleType, _
property As ManagedProperty, _
userValue As String _
)
'Usage
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
)
Parameters
- parentScope
Type: Microsoft.Office.Server.Search.Administration.Scope
A Scope object representing the scope rule's parent scope.
- filterBehavior
Type: Microsoft.Office.Server.Search.Administration.ScopeRuleFilterBehavior
A value from the ScopeRuleFilterBehavior enumeration specifying the scope rule's filter behavior.
- ruleType
Type: Microsoft.Office.Server.Search.Administration.ScopeRuleType
A value from the ScopeRuleType enumeration specifying the type of scope rule.
- urlRuleType
Type: Microsoft.Office.Server.Search.Administration.UrlScopeRuleType
A value from the UrlScopeRuleType enumeration specifying the type of URL scope rule.
- userValue
Type: System.String
A string specifying a managed property value to use for the scope rule.