ApplicationPartition.DirectoryServers Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an DirectoryServerCollection object that contains the directory servers that host this application partition.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public DirectoryServerCollection DirectoryServers { get; }

Property Value

Type: System.DirectoryServices.ActiveDirectory.DirectoryServerCollection

A DirectoryServerCollection object that contains DirectoryServer objects that represent directory servers for this application partition.

Exception Condition
InvalidOperationException

The ApplicationPartition object has not yet been committed to the underlying directory store.

ObjectDisposedException

The object has been disposed.

The ApplicationPartition.DirectoryServers property returns the same collection of DirectoryServer objects as the ApplicationPartition.FindAllDirectoryServers() method if the ApplicationPartition object has been committed to the underlying directory services store.

.NET Framework
Available since 2.0
Return to top
Show: