add ISafeSerializationData
[mcs.git] / class / System.ServiceModel.Routing / System.ServiceModel.Routing.Configuration / BackupEndpointCollection.cs
blob32592d51ad4c288c91e65c2ad4ea7b7a4ec7aa7d
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;
11 namespace System.ServiceModel.Routing.Configuration
13 [ConfigurationCollection (typeof (BackupEndpointElement))]
14 public class BackupEndpointCollection : ConfigurationElementCollection
16 [ConfigurationProperty ("name", DefaultValue = null, Options = ConfigurationPropertyOptions.IsRequired)]
17 public string Name {
18 get { return (string) base ["name"]; }
19 set { base ["name"] = value; }
22 public BackupEndpointCollection ()
26 public void Add (BackupEndpointElement element)
28 BaseAdd (element);
31 public void Clear ()
33 BaseClear ();
36 protected override ConfigurationElement CreateNewElement ()
38 return new BackupEndpointElement ();
41 protected override object GetElementKey (ConfigurationElement element)
43 return ((BackupEndpointElement) element).EndpointName;
46 public void Remove (BackupEndpointElement element)
48 BaseRemove (element);