The list of Active Directory domain host-path pairs from <prog_name>.exe.config
.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="activeDir" type="AcUtils.ADSection, AcUtils, Version=1.6.4.0, Culture=neutral, PublicKeyToken=26470c2daf5c2e2f, processorArchitecture=MSIL" />
...
</configSections>
<activeDir>
<domains>
<!-- contact your company LDAP administrator for these values -->
<add host="xyzdc.mycorp.com" path="DC=XYZ,DC=xy,DC=zcorp,DC=com"/>
<add host="abcdc.mycorp.com" path="DC=ABC,DC=ab,DC=com"/>
...
</domains>
<properties>
</properties >
</activeDir>
...
ADSection adSection = ConfigurationManager.GetSection("activeDir") as ADSection;
DomainCollection dc = adSection.Domains;
- See also
- PropCollection, ShowPermissions.cs
Definition at line 49 of file DomainCollection.cs.