AcUtils
A high performance abstraction layer for AccuRev
StreamElement.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 StreamElement : ConfigurationElement
26  {
27  private static ConfigurationProperty _stream;
28  private static ConfigurationPropertyCollection _properties;
29 
30  static StreamElement()
31  {
32  _stream = new ConfigurationProperty("stream", typeof(string),
33  null, ConfigurationPropertyOptions.IsRequired);
34 
35  _properties = new ConfigurationPropertyCollection();
36  _properties.Add(_stream);
37  }
38 
42  [ConfigurationProperty("stream", DefaultValue = "", IsKey = true, IsRequired = true)]
43  public string Stream
44  {
45  get { return (string)base[_stream]; }
46  }
47 
48  protected override ConfigurationPropertyCollection Properties
49  {
50  get { return _properties; }
51  }
52  }
53 }
string Stream
The stream from the Streams section in .exe.config.
An AccuRev stream from the Streams section in .exe.config.