add ISafeSerializationData
[mcs.git] / class / System.ServiceModel.Routing / System.ServiceModel.Routing.Configuration / FilterTableEntryCollection.cs
blob799d65e3304b9cc247c8ffe91b4424758934be9d
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(FilterTableEntryElement))]
14 public class FilterTableEntryCollection : ConfigurationElementCollection
16 [ConfigurationProperty ("name", DefaultValue = null, Options = ConfigurationPropertyOptions.None | ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
17 public string Name {
18 get { return (string) base ["name"]; }
19 set { base ["name"] = value; }
22 public void Add (FilterTableEntryElement element)
24 BaseAdd (element);
27 public void Clear ()
29 BaseClear ();
32 protected override ConfigurationElement CreateNewElement ()
34 return new FilterTableEntryElement ();
37 protected override object GetElementKey (ConfigurationElement element)
39 return ((FilterTableEntryElement) element).EndpointName;
42 public void Remove (FilterTableEntryElement element)
44 BaseRemove (element);