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
type
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.ExpressionTypesThe type of the aggregate context expression.
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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace