public void Remove(SapConnectionConfigElement sapConnection)
 {
     if (BaseIndexOf(sapConnection) >= 0)
     {
         BaseRemove(sapConnection.Name);
         // Your custom code goes here.
         Console.WriteLine("SapConnectionsCollection: {0}", "Removed collection element!");
     }
 }
 public void Add(SapConnectionConfigElement sapConnection)
 {
     BaseAdd(sapConnection);
     // Your custom code goes here.
 }
 public int IndexOf(SapConnectionConfigElement sapConnection)
 {
     return(BaseIndexOf(sapConnection));
 }
        // Create a new instance of the SapConnectionsSection.
        // This constructor creates a configuration element
        // using the SapConnectionConfigElement default values.
        // It assigns this element to the collection.
        public SapConnectionsSection()
        {
            SapConnectionConfigElement connection = new SapConnectionConfigElement();

            SapConnections.Add(connection);
        }