Editare

Partajați prin


ActiveDirectorySiteCollection.Contains(ActiveDirectorySite) Method

Definition

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

Parameters

site
ActiveDirectorySite

The ActiveDirectorySite object to search for in this collection.

Returns

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

Exceptions

A call to the underlying directory service resulted in an error.

site is null.

The ActiveDirectorySite object has not yet been saved in the Active Directory Domain Services store.

Applies to

See also