//
// Authors:
// Tim Coleman (tim@timcoleman.com)
+// Chris Toshok (toshok@ximian.com)
//
// Copyright (C) Tim Coleman, 2004
-// (c) 2004 Novell, Inc. (http://www.novell.com)
+// (C) 2004,2005 Novell, Inc. (http://www.novell.com)
//
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0 && CONFIGURATION_DEP
+#if CONFIGURATION_DEP
using System.Configuration;
namespace System.Net.Configuration
{
+ [ConfigurationCollection (typeof (ConnectionManagementElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
public sealed class ConnectionManagementElementCollection : ConfigurationElementCollection
{
#region Constructors
- [MonoTODO]
public ConnectionManagementElementCollection ()
{
}
#region Methods
- [MonoTODO]
public void Add (ConnectionManagementElement element)
{
BaseAdd (element);
}
- [MonoTODO]
public void Clear ()
{
BaseClear ();
}
- [MonoTODO]
protected override ConfigurationElement CreateNewElement ()
{
- return new AuthenticationModuleElement ();
+ return new ConnectionManagementElement ();
}
- [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
if (!(element is ConnectionManagementElement))
throw new ArgumentException ("element");
- throw new NotImplementedException ();
+
+ return ((ConnectionManagementElement)element).Address;
}
public int IndexOf (ConnectionManagementElement element)