ActiveDirectorySiteCollection.Contains(ActiveDirectorySite) Metoda

Definice

Určuje, zda je zadaný ActiveDirectorySite objekt v této kolekci.

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

Parametry

site
ActiveDirectorySite

Objekt ActiveDirectorySite , který chcete vyhledat v této kolekci.

Návraty

true pokud se ActiveDirectorySite objekt nachází v této kolekci, jinak hodnota false.

Výjimky

Volání podkladové adresářové služby způsobilo chybu.

site je null.

Objekt ActiveDirectorySite ještě nebyl uložen v úložišti Active Directory Domain Services.

Platí pro

Viz také