VirtualUserScript 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.5.5.77
Syntax

public 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.

Implements

IDataDictionary HasKey(String)
Examples

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