PropertyCollection::IDictionary::Contains Method (Object^)
.NET Framework (current version)
Determines whether the IDictionary object contains an element with the specified key.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Parameters
- value
-
Type:
System::Object^
The key to locate in the IDictionary object.
Return Value
Type: System::Booleantrue if the IDictionary contains an element with the key; otherwise, false.
Implements
IDictionary::Contains(Object^)| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
The following example demonstrates how to implement the Contains method. This example is part of a larger example provided for the IDictionary class.
.NET Framework
Available since 1.1
Available since 1.1
Show: