Share via


IReadOnlyPropertyCollection.ContainsKey method

Determines if the IReadOnlyPropertyCollection 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 IReadOnlyPropertyCollection
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

IReadOnlyPropertyCollection interface

IReadOnlyPropertyCollection members

Microsoft.Office.Server.Search.Query namespace