AggregateContextExpression.AddKeyValueExpression Method (String, String, ExpressionTypes)
NOTE: This API is now obsolete.
Adds a key-value pair to the aggregate 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(string, string)")> _
Function AddKeyValueExpression ( _
key As String, _
value As String, _
type As ExpressionTypes _
) As KeyValueAtomicContextExpression
'Usage
Dim instance As AggregateContextExpression
Dim key As String
Dim value As String
Dim type As ExpressionTypes
Dim returnValue As KeyValueAtomicContextExpression
returnValue = instance.AddKeyValueExpression(key, _
value, type)
[ObsoleteAttribute("Use AddMatchExpression(string, string)")]
KeyValueAtomicContextExpression AddKeyValueExpression(
string key,
string value,
ExpressionTypes type
)
Parameters
key
Type: System.StringThe key.
value
Type: System.StringThe value.
type
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.ExpressionTypesThe type of the aggregate expression.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.KeyValueAtomicContextExpression
A KeyValueAtomicContextExpression representing the added node.
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