ActiveDirectorySiteCollection.Contains(ActiveDirectorySite) ActiveDirectorySiteCollection.Contains(ActiveDirectorySite) ActiveDirectorySiteCollection.Contains(ActiveDirectorySite) ActiveDirectorySiteCollection.Contains(ActiveDirectorySite) Method

Definition

Ermittelt, ob das angegebene ActiveDirectorySite-Objekt in dieser Auflistung enthalten ist.Determines if the specified ActiveDirectorySite object is in this collection.

public:
 bool Contains(System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^ site);
public bool Contains (System.DirectoryServices.ActiveDirectory.ActiveDirectorySite site);
member this.Contains : System.DirectoryServices.ActiveDirectory.ActiveDirectorySite -> bool
Public Function Contains (site As ActiveDirectorySite) As Boolean

Parameter

site
ActiveDirectorySite ActiveDirectorySite ActiveDirectorySite ActiveDirectorySite

Das ActiveDirectorySite-Objekt, das in dieser Auflistung gesucht werden soll.The ActiveDirectorySite object to search for in this collection.

Gibt zurück

true, wenn das ActiveDirectorySite-Objekt in dieser Auflistung enthalten ist, andernfalls false.true if the ActiveDirectorySite object is in this collection; otherwise, false.

Ausnahmen

Bei einem Aufruf des zugrunde liegenden Verzeichnisdiensts ist ein Fehler aufgetreten.A call to the underlying directory service resulted in an error.

Das ActiveDirectorySite-Objekt wurde noch nicht im Active Directory-Domänendienste-Speicher gespeichert.The ActiveDirectorySite object has not yet been saved in the Active Directory Domain Services store.

Gilt für:

Siehe auch