Gemstone IO Library
Show/Hide TOC

# FileBackedDictionary TKey, TValue, TKeyElem, TValueElem ContainsKey Method

Determines whether the FileBackedDictionaryTKey, TValue contains an element with the specified key.

## Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.174 -- Release Build+d66b444368a59db4ecef4512e2cb9c8ad9d6bb5b
C#
View Source Request Example

    public bool ContainsKey(
    	TKey key
    )

VB
View Source Request Example

    Public Function ContainsKey (
    	key As TKey
    ) As Boolean

C++
View Source Request Example

    public:
    virtual bool ContainsKey(
    	TKey key
    ) sealed

JavaScript
View Source Request Example

    function ContainsKey(key);

#### Parameters

key TKey
  The key to locate in the FileBackedDictionaryTKey, TValue.

#### Return Value

Boolean
true if the FileBackedDictionaryTKey, TValue contains an element with the key; otherwise, false.

#### Implements

IDictionaryTKey, TValue ContainsKey(TKey)

## Exceptions

ArgumentNullException | key is null.

## See Also

#### Reference

FileBackedDictionaryTKey, TValue, TKeyElem, TValueElem Class
Gemstone.IO.Collections Namespace