AcUtils
A high performance abstraction layer for AccuRev
UserElement.cs
Go to the documentation of this file.
1 
16 using System;
17 using System.Configuration;
18 
19 namespace AcUtils
20 {
24  [Serializable]
25  public sealed class UserElement : ConfigurationElement
26  {
27  private static ConfigurationProperty _user; // domain (login) ID or email address
28  private static ConfigurationPropertyCollection _properties;
29 
30  static UserElement()
31  {
32  _user = new ConfigurationProperty("user", typeof(string),
33  null, ConfigurationPropertyOptions.IsKey);
34 
35  _properties = new ConfigurationPropertyCollection();
36  _properties.Add(_user);
37  }
38 
43  [ConfigurationProperty("user", DefaultValue = "", IsKey = true, IsRequired = true)]
44  public string User
45  {
46  get { return (string)base[_user]; }
47  }
48 
49  protected override ConfigurationPropertyCollection Properties
50  {
51  get { return _properties; }
52  }
53  }
54 }
string User
The user from the Users section in .exe.config.
Definition: UserElement.cs:45
A user's domain (login) ID or email address from the Users section in .exe.config.
Definition: UserElement.cs:25