ApplicationPartition.FindAllDiscoverableDirectoryServers Method

Definition

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.

Overloads

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.

FindAllDiscoverableDirectoryServers(String)

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.

C#
public System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection FindAllDiscoverableDirectoryServers(string siteName);

Parameters

siteName
String

A String that specifies the name of the site to search.

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

FindAllDiscoverableDirectoryServers()

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.

C#
public System.DirectoryServices.ActiveDirectory.ReadOnlyDirectoryServerCollection FindAllDiscoverableDirectoryServers();

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