/// <summary> /// Default constructor. /// </summary> public DirectoryCollection() { // Get the current directory element. DirectoryElement directory = (DirectoryElement)CreateNewElement(); // Add the element to the collection. Add(directory); }
/// <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); }