* BackupListCollection.cs, FilterTableCollection.cs: Add indexer.
[mono.git] / mcs / class / System.ServiceModel.Routing / System.ServiceModel.Routing.Configuration / BackupListCollection.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
4 using System.Configuration;
5 using System.ServiceModel;
6 using System.ServiceModel.Channels;
7 using System.ServiceModel.Configuration;
8 using System.ServiceModel.Description;
9 using System.ServiceModel.Dispatcher;
10
11 namespace System.ServiceModel.Routing.Configuration
12 {
13         [ConfigurationCollection (typeof (BackupEndpointCollection), AddItemName = "backupList")]
14         public class BackupListCollection : ConfigurationElementCollection
15         {
16                 public void Add (BackupEndpointCollection element)
17                 {
18                         BaseAdd (element);
19                 }
20
21                 protected override ConfigurationElement CreateNewElement ()
22                 {
23                         return new BackupEndpointElement ();
24                 }
25
26                 protected override Object GetElementKey (ConfigurationElement element)
27                 {
28                         return ((BackupEndpointElement) element).EndpointName;
29                 }
30
31                 public void Remove (BackupEndpointCollection element)
32                 {
33                         BaseRemove (element);
34                 }
35
36                 public new BackupEndpointCollection this [string name] {
37                         get { return (BackupEndpointCollection) BaseGet (name); }
38                 }
39         }
40 }