AcUtils
A high performance abstraction layer for AccuRev
ADSection.cs
Go to the documentation of this file.
1 
16 using System;
17 using System.Configuration;
18 
19 namespace AcUtils
20 {
26 
27  [Serializable]
28  public sealed class ADSection : ConfigurationSection
29  {
30  private static ConfigurationProperty _domains;
31  private static ConfigurationProperty _props;
32  private static ConfigurationPropertyCollection _properties;
33 
34  static ADSection()
35  {
36  _domains = new ConfigurationProperty("domains", typeof(DomainCollection),
37  null, ConfigurationPropertyOptions.IsRequired);
38  _props = new ConfigurationProperty("properties", typeof(PropCollection),
39  null, ConfigurationPropertyOptions.IsRequired);
40  _properties = new ConfigurationPropertyCollection();
41  _properties.Add(_domains);
42  _properties.Add(_props);
43  }
44 
48  [ConfigurationProperty("domains")]
50  {
51  get { return (DomainCollection)base[_domains]; }
52  }
53 
57  [ConfigurationProperty("properties")]
58  public PropCollection Props
59  {
60  get { return (PropCollection)base[_props]; }
61  }
62 
63  protected override ConfigurationPropertyCollection Properties
64  {
65  get { return _properties; }
66  }
67  }
68 }
The list of Active Directory user property field-title pairs from .exe.config. These are user properties not in the regular default set.
The list of Active Directory domain host-path pairs from .exe.config.
The activeDir section in .exe.config. Supports multiple Active Directory domains plus user...
Definition: ADSection.cs:28
DomainCollection Domains
The list of domains from .exe.config.
Definition: ADSection.cs:50
PropCollection Props
The list of properties from .exe.config.
Definition: ADSection.cs:59