3 references to GetForest
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
590
_currentForest = Forest.
GetForest
(forestContext);
System\DirectoryServices\ActiveDirectory\Forest.cs (1)
620
public static Forest GetCurrentForest() =>
GetForest
(new DirectoryContext(DirectoryContextType.Forest));
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
1192
Forest forest = Forest.
GetForest
(new DirectoryContext(DirectoryContextType.Forest, this.DnsForestName, this.credentials?.UserName, this.credentials?.Password));