AcUtils
A high performance abstraction layer for AccuRev
PropElement.cs
Go to the documentation of this file.
1 
16 using System;
17 using System.Configuration;
18 
19 namespace AcUtils
20 {
27 
28  [Serializable]
29  public sealed class PropElement : ConfigurationElement
30  {
31  private static ConfigurationProperty _field;
32  private static ConfigurationProperty _title;
33  private static ConfigurationPropertyCollection _properties;
34 
35  static PropElement()
36  {
37  _field = new ConfigurationProperty("field", typeof(string),
38  null, ConfigurationPropertyOptions.IsRequired);
39  _title = new ConfigurationProperty("title", typeof(string),
40  null, ConfigurationPropertyOptions.IsRequired);
41 
42  _properties = new ConfigurationPropertyCollection();
43  _properties.Add(_field);
44  _properties.Add(_title);
45  }
46 
51  [ConfigurationProperty("field", DefaultValue = "", IsKey = true, IsRequired = true)]
52  public string Field
53  {
54  get { return (string)base[_field]; }
55  }
56 
61  [ConfigurationProperty("title", DefaultValue = "", IsKey = false, IsRequired = true)]
62  public string Title
63  {
64  get { return (string)base[_title]; }
65  }
66 
67  protected override ConfigurationPropertyCollection Properties
68  {
69  get { return _properties; }
70  }
71  }
72 }
An Active Directory user property element field-title pair from .exe.config. These are user properties not in the regular default set.
Definition: PropElement.cs:29
string Field
The field from a field-title pair in .exe.config.
Definition: PropElement.cs:53
string Title
The title from a field-title pair in .exe.config.
Definition: PropElement.cs:63