IDataDictionary HasKey Method C# API
Determines whether the specified key is contained within the dictionary.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.4.0.26
Syntax

bool HasKey(
	string key
)

Parameters

key
Type: System String
The key to be looked up in the dictionary.

Return Value

true if the dictionary contains the specified key; otherwise, false.
Examples

The following example demonstrates checking if the dictionary contains a particular key.
if (myDictionary.HasKey("newHostName"))
{
    // do something
}
else
{
    // do something else
}
See Also