Context.AddAggregateContextExpression Method

NOTE: This API is now obsolete.

Adds an aggregate context expression to context.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use AddAndExpression(), AddOrExpression() or AddNotExpression()")> _
Function AddAggregateContextExpression ( _
    type As ExpressionTypes _
) As AggregateContextExpression
'Usage
Dim instance As Context
Dim type As ExpressionTypes
Dim returnValue As AggregateContextExpression

returnValue = instance.AddAggregateContextExpression(type)
[ObsoleteAttribute("Use AddAndExpression(), AddOrExpression() or AddNotExpression()")]
AggregateContextExpression AddAggregateContextExpression(
    ExpressionTypes type
)

Parameters

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.AggregateContextExpression
An AggregateContextExpression that represents the added expression.

Remarks

This method should be used to get a handle to the context expression. Subsequent expression nodes should be added to the handle returned by this call and not on the context. This method will overwrite any previous context expressions on the context

See Also

Reference

Context Interface

Context Members

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace