Forest.RootDomain Property


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

Gets the first domain that was created in a forest.

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

public Domain RootDomain { get; }

Property Value

Type: System.DirectoryServices.ActiveDirectory.Domain

A Domain object that represents the first domain that was created in this Forest.

Exception Condition

The object has been disposed.

.NET Framework
Available since 2.0
Return to top