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 (BackupEndpointCollection
), AddItemName
= "backupList")]
14 public class BackupListCollection
: ConfigurationElementCollection
16 public void Add (BackupEndpointCollection element
)
26 protected override ConfigurationElement
CreateNewElement ()
28 return new BackupEndpointElement ();
31 protected override Object
GetElementKey (ConfigurationElement element
)
33 return ((BackupEndpointElement
) element
).EndpointName
;
36 public void Remove (BackupEndpointCollection element
)
41 public new BackupEndpointCollection
this [string name
] {
43 foreach (BackupEndpointCollection c
in this)