ApplicationPartition.FindAllDiscoverableDirectoryServers Method
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.
Retrieves the directory servers that have registered either a site-specific DNS record for the current site or a non-site-specific DNS record for the application partition.
FindAllDiscoverableDirectoryServers(String) |
Returns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that have registered a site-specific DNS record, for the specified site, for the application partition. |
FindAllDiscoverableDirectoryServers() |
Returns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that have registered either a site-specific DNS record for the current site or a non-site-specific DNS record for the application partition. |
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
Returns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that have registered a site-specific DNS record, for the specified site, for the application partition.
public:
System::DirectoryServices::ActiveDirectory::ReadOnlyDirectoryServerCollection ^ FindAllDiscoverableDirectoryServers(System::String ^ siteName);
public System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection FindAllDiscoverableDirectoryServers(string siteName);
member this.FindAllDiscoverableDirectoryServers : string -> System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection
Public Function FindAllDiscoverableDirectoryServers (siteName As String) As ReadOnlyDirectoryServerCollection
Parameters
Returns
A ReadOnlyDirectoryServerCollection object that contains the directory servers that are found.
Exceptions
siteName
is an empty string.
siteName
is null
.
The ApplicationPartition object has not yet been committed to the underlying directory store.
The application partition is an AD LDS application partition.
The object has been disposed.
See also
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
- Source:
- ApplicationPartition.cs
Returns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that have registered either a site-specific DNS record for the current site or a non-site-specific DNS record for the application partition.
public:
System::DirectoryServices::ActiveDirectory::ReadOnlyDirectoryServerCollection ^ FindAllDiscoverableDirectoryServers();
public System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection FindAllDiscoverableDirectoryServers();
member this.FindAllDiscoverableDirectoryServers : unit -> System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection
Public Function FindAllDiscoverableDirectoryServers () As ReadOnlyDirectoryServerCollection
Returns
A ReadOnlyDirectoryServerCollection object that contains the directory servers that were found.
Exceptions
The ApplicationPartition object has not yet been committed to the underlying directory store.
The application partition is an AD LDS application partition.
The object has been disposed.
See also
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: