다음을 통해 공유


UpdatableCollection<Key, T>.Contains Method

Determines whether the collection contains the specified key.

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

Syntax

'Declaration
Public Function Contains ( _
    id As Key _
) As Boolean
'Usage
Dim instance As UpdatableCollection
Dim id As Key
Dim returnValue As Boolean

returnValue = instance.Contains(id)
public bool Contains(
    Key id
)

Parameters

  • id
    Type: Key

    The key to locate.

Return Value

Type: System.Boolean
true if the collection contains the specified key; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

id is null .

Remarks

This method calls the ContainsKey method on the values property that contains the collection.

See Also

Reference

UpdatableCollection<Key, T> Class

UpdatableCollection<Key, T> Members

Microsoft.Office.Server.Search.Administration Namespace