flush
[mcs.git] / class / System.ServiceModel.Routing / System.ServiceModel.Routing.Configuration / FilterTableEntryCollection.cs
blobf4cb3177256294126b10003f3eb04dc37b43bced
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 { get; set; }
19 public void Add (FilterTableEntryElement element)
21 BaseAdd (element);
24 public void Clear ()
26 BaseClear ();
29 protected override ConfigurationElement CreateNewElement ()
31 return new FilterTableEntryElement ();
34 protected override object GetElementKey (ConfigurationElement element)
36 return ((FilterTableEntryElement) element).EndpointName;
39 public override bool IsReadOnly ()
41 return base.IsReadOnly ();
44 public void Remove (FilterTableEntryElement element)
46 BaseRemove (element);