Επεξεργασία

Κοινή χρήση μέσω


Domain.FindAllDomainControllers Method

Definition

Finds all of the domain controllers in this domain.

Overloads

FindAllDomainControllers()

Finds all of the domain controllers in this domain.

FindAllDomainControllers(String)

Finds all of the domain controllers in this domain that are also in the specified site.

FindAllDomainControllers()

Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs

Finds all of the domain controllers in this domain.

public:
 System::DirectoryServices::ActiveDirectory::DomainControllerCollection ^ FindAllDomainControllers();
public System.DirectoryServices.ActiveDirectory.DomainControllerCollection FindAllDomainControllers ();
member this.FindAllDomainControllers : unit -> System.DirectoryServices.ActiveDirectory.DomainControllerCollection
Public Function FindAllDomainControllers () As DomainControllerCollection

Returns

A DomainControllerCollection that contains the domain controller objects that were found by this method.

Exceptions

The target server is either busy or unavailable.

The object has been disposed.

See also

Applies to

FindAllDomainControllers(String)

Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs

Finds all of the domain controllers in this domain that are also in the specified site.

public:
 System::DirectoryServices::ActiveDirectory::DomainControllerCollection ^ FindAllDomainControllers(System::String ^ siteName);
public System.DirectoryServices.ActiveDirectory.DomainControllerCollection FindAllDomainControllers (string siteName);
member this.FindAllDomainControllers : string -> System.DirectoryServices.ActiveDirectory.DomainControllerCollection
Public Function FindAllDomainControllers (siteName As String) As DomainControllerCollection

Parameters

siteName
String

The name of the site to search for the domain controllers.

Returns

A DomainControllerCollection that contains the domain controller objects that were found by this method.

Exceptions

The target server is either busy or unavailable.

siteName is an empty string.

siteName is null.

The object has been disposed.

See also

Applies to