QueryRuleGroupMembersCollection.OnPreAddInternal method
Adds a query rule to the collection at the specified position. Position is zero-based.
Namespace: Microsoft.Office.Server.Search.Query.Rules
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Protected Overrides Sub OnPreAddInternal ( _
queryRule As QueryRule _
)
'Usage
Dim queryRule As QueryRule
Me.OnPreAddInternal(queryRule)
protected override void OnPreAddInternal(
QueryRule queryRule
)
Parameters
- queryRule
Type: Microsoft.Office.Server.Search.Query.Rules.QueryRule
Exceptions
Exception | Condition |
---|---|
NotSupportedException | Thrown when the collection is read only |
ArgumentOutOfRangeException | Thrown when index is not a valid index in the collection. |
ArgumentException | Thrown when the query rule already exists in the collection |
See also
Reference
QueryRuleGroupMembersCollection class