Sdílet prostřednictvím


ReadOnlySiteCollection.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.

Návraty

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

Výjimky

site je null.

Platí pro

Viz také