DomainCollection.Contains(Domain) DomainCollection.Contains(Domain) DomainCollection.Contains(Domain) Method

Definition

Determines if the specified Domain object is in this collection.

public:
 bool Contains(System::DirectoryServices::ActiveDirectory::Domain ^ domain);
public bool Contains (System.DirectoryServices.ActiveDirectory.Domain domain);
member this.Contains : System.DirectoryServices.ActiveDirectory.Domain -> bool

Parameters

domain
Domain Domain Domain

The Domain object to search for in this collection.

Returns

true if the Domain object is in this collection; otherwise, false.

Exceptions

Applies to

See also