Exemple #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public DirectoryCollection()
        {
            // Get the current directory element.
            DirectoryElement directory =
                (DirectoryElement)CreateNewElement();

            // Add the element to the collection.
            Add(directory);
        }
Exemple #2
0
 /// <summary>
 /// Add a new directory element type to the collection.
 /// </summary>
 /// <param name="element">The current directory element.</param>
 public void Add(DirectoryElement element)
 {
     // Add the element to the base
     // ConfigurationElementCollection type.
     BaseAdd(element);
 }