API Reference
Class
DirectoryContextProvider
Provides typed forest/domain snapshots and caches them per run to avoid repeated AD calls.
Inheritance
- Object
- DirectoryContextProvider
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property DirectoryContextProvider.Instance
Accepted by parameters
Methods
public DomainInfo GetDomain(String domainName) #Returns:
DomainInfoReturns a cached or freshly resolved DomainInfo for the given domain DNS name.
Parameters
- domainName System.String
public ForestInfo GetForest(String forestName, String domainNameForLookup = null) #Returns:
ForestInfoReturns a cached or freshly resolved ForestInfo. Falls back to the domain name when forest is not provided.
Parameters
- forestName System.String
- domainNameForLookup System.String = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public static DirectoryContextProvider Instance { get; } #Singleton instance used across the process.