Share via


AggregateContextExpression.AddKeyValueExpression Method (IList<KeyValuePair<String, String>>, ExpressionTypes)

NOTE: This API is now obsolete.

Adds a list of key-value pairs to the aggregate expression node.

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

Syntax

'Declaration
<ObsoleteAttribute("Use AddMatchExpression(IList<KeyValuePair<string, string>>)")> _
Function AddKeyValueExpression ( _
    pairs As IList(Of KeyValuePair(Of String, String)), _
    type As ExpressionTypes _
) As IList(Of KeyValueAtomicContextExpression)
'Usage
Dim instance As AggregateContextExpression
Dim pairs As IList(Of KeyValuePair(Of String, String))
Dim type As ExpressionTypes
Dim returnValue As IList(Of KeyValueAtomicContextExpression)

returnValue = instance.AddKeyValueExpression(pairs, _
    type)
[ObsoleteAttribute("Use AddMatchExpression(IList<KeyValuePair<string, string>>)")]
IList<KeyValueAtomicContextExpression> AddKeyValueExpression(
    IList<KeyValuePair<string, string>> pairs,
    ExpressionTypes type
)

Parameters

Return Value

Type: System.Collections.Generic.IList<KeyValueAtomicContextExpression>
An [IList] of **[KeyValueAtomicContextExpression]**s.

Remarks

This method should not be used, as it allows the construction of meaningless expressions.

See Also

Reference

AggregateContextExpression Interface

AggregateContextExpression Members

AddKeyValueExpression Overload

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