Share via


IPropertyCollection.ContainsKey method

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

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.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

  • key
    Type: System.String

    The key to locate in the IPropertyCollection.

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.SharePoint.Search.Query namespace