Share via


QueryActionCollection<T>.OnPreAddInternal method

Adds a QueryAction object 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 ( _
    queryAction As T _
)
'Usage
Dim queryAction As T

Me.OnPreAddInternal(queryAction)
protected override void OnPreAddInternal(
    T queryAction
)

Parameters

  • queryAction
    Type: T

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 QueryAction object already exists in the collection

See also

Reference

QueryActionCollection<T> class

QueryActionCollection<T> members

Microsoft.Office.Server.Search.Query.Rules namespace