Share via


IPropertyCollection.ContainsKey method

Determines if the IPropertyCollection contains an element with the specified key.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Function ContainsKey ( _
    key As String _
) As Boolean
'Usage
Dim instance As IPropertyCollection
Dim key As String
Dim returnValue As Boolean

returnValue = instance.ContainsKey(key)
bool ContainsKey(
    string key
)

Parameters

Return value

Type: System.Boolean
true if a property with that key can be accessed by using the bag; otherwise; false.

See also

Reference

IPropertyCollection interface

IPropertyCollection members

Microsoft.Office.Server.Search.Query namespace