ActiveDirectorySchemaPropertyCollection::Contains Method (ActiveDirectorySchemaProperty^)
.NET Framework (current version)
Determines if the specified ActiveDirectorySchemaProperty object is in this collection.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Parameters
- schemaProperty
-
Type:
System.DirectoryServices.ActiveDirectory::ActiveDirectorySchemaProperty^
The ActiveDirectorySchemaProperty object to search for in this collection.
Return Value
Type: System::Booleantrue if the ActiveDirectorySchemaProperty object is in this collection; otherwise, false.
| Exception | Condition |
|---|---|
| ActiveDirectoryOperationException | A call to the underlying directory service resulted in an error. |
| ArgumentNullException | schemaProperty is null. |
| InvalidOperationException | The ActiveDirectorySchemaProperty object has not yet been saved in the Active Directory Domain Services store. |
.NET Framework
Available since 2.0
Available since 2.0
Show: