Target DictionaryContains Key Method
Determines whether the IDictionaryTKey, TValue contains an element with the specified key.
Definition
Namespace: Sandcastle.Tools.BuildComponents.Targets
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
if the IDictionaryTKey, TValue contains an element with the key; otherwise, .
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
C#
public abstract bool ContainsKey(
string key
)VB
Public MustOverride Function ContainsKey (
key As String
) As BooleanC++
public:
virtual bool ContainsKey(
String^ key
) abstractF#
abstract ContainsKey :
key : string -> bool Parameters
- key String
- The key to locate in the IDictionaryTKey, TValue.
Return Value
Booleanif the IDictionaryTKey, TValue contains an element with the key; otherwise, .
Implements
IDictionaryTKey, TValueContainsKey(TKey)Exceptions
| ArgumentNullException | key is . |