Domain.FindAllDomainControllers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈