Parcourir la source

2005-09-19 Chris Toshok <[email protected]>

	* System.Configuration/SettingsProvider.cs,
	System.Configuration/SettingsPropertyValueCollection.cs,
	System.Configuration/SettingsPropertyCollection.cs,
	System.Configuration/SettingsProviderCollection.cs,
	System.Configuration/SettingsBase.cs,
	System.Configuration/SettingsSerializeAs.cs,
	System.Configuration/SettingsPropertyValue.cs,
	System.Configuration/SettingsProperty.cs,
	System.Configuration/SettingsContext.cs,
	System.Configuration/SettingsAttributeDictionary.cs: new files.


svn path=/trunk/mcs/; revision=50255
Chris Toshok il y a 20 ans
Parent
commit
a8f2f0109a

+ 13 - 0
mcs/class/System/System.Configuration/ChangeLog

@@ -1,3 +1,16 @@
+2005-09-19  Chris Toshok  <[email protected]>
+
+	* System.Configuration/SettingsProvider.cs,
+	System.Configuration/SettingsPropertyValueCollection.cs,
+	System.Configuration/SettingsPropertyCollection.cs,
+	System.Configuration/SettingsProviderCollection.cs,
+	System.Configuration/SettingsBase.cs,
+	System.Configuration/SettingsSerializeAs.cs,
+	System.Configuration/SettingsPropertyValue.cs,
+	System.Configuration/SettingsProperty.cs,
+	System.Configuration/SettingsContext.cs,
+	System.Configuration/SettingsAttributeDictionary.cs: new files.
+
 2005-07-05  Raja R Harinath  <[email protected]>
 
 	* ConfigurationSettings.cs (ConnectionStrings): Change XML_DEP

+ 50 - 0
mcs/class/System/System.Configuration/SettingsAttributeDictionary.cs

@@ -0,0 +1,50 @@
+//
+// System.Web.UI.WebControls.SettingsProperty.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.Collections;
+
+namespace System.Configuration
+{
+	[SerializableAttribute] 
+	public class SettingsAttributeDictionary : Hashtable
+	{
+		public SettingsAttributeDictionary ()
+		{
+		}
+
+		public SettingsAttributeDictionary (SettingsAttributeDictionary attributes)
+			: base (attributes)
+		{
+		}
+
+	}
+}
+
+#endif

+ 103 - 0
mcs/class/System/System.Configuration/SettingsBase.cs

@@ -0,0 +1,103 @@
+//
+// System.Web.UI.WebControls.SettingsBase.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.ComponentModel;
+
+namespace System.Configuration
+{
+
+	public abstract class SettingsBase
+	{
+		protected SettingsBase ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void Initialize (SettingsContext context,    
+					SettingsPropertyCollection properties,
+					SettingsProviderCollection providers)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public virtual void Save ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public static SettingsBase Synchronized (SettingsBase settingsBase)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public virtual SettingsContext Context {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[Browsable (false)]
+		public bool IsSynchronized {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public virtual object this [ string propertyName ] {
+			get {
+				throw new NotImplementedException ();
+			}
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public virtual SettingsPropertyCollection Properties {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public virtual SettingsPropertyValueCollection PropertyValues {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public virtual SettingsProviderCollection Providers {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+	}
+
+}
+
+#endif

+ 43 - 0
mcs/class/System/System.Configuration/SettingsContext.cs

@@ -0,0 +1,43 @@
+//
+// System.Web.UI.WebControls.SettingsPropertyValueCollection.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.Collections;
+
+namespace System.Configuration
+{
+
+	[Serializable] 
+	public class SettingsContext : Hashtable
+	{
+	}
+
+}
+
+#endif

+ 174 - 0
mcs/class/System/System.Configuration/SettingsProperty.cs

@@ -0,0 +1,174 @@
+//
+// System.Web.UI.WebControls.SettingsProperty.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+
+namespace System.Configuration
+{
+	public class SettingsProperty
+	{
+		public SettingsProperty (SettingsProperty propertyToCopy)
+			: this (propertyToCopy.Name,
+				propertyToCopy.PropertyType,
+				propertyToCopy.Provider,
+				propertyToCopy.IsReadOnly,
+				propertyToCopy.DefaultValue,
+				propertyToCopy.SerializeAs,
+				new SettingsAttributeDictionary (propertyToCopy.Attributes),
+				propertyToCopy.ThrowOnErrorDeserializing,
+				propertyToCopy.ThrowOnErrorSerializing)
+		{
+		}
+
+		public SettingsProperty (string name)
+			: this (name,
+				null,
+				null,
+				false,
+				null,
+				SettingsSerializeAs.String,
+				new SettingsAttributeDictionary(),
+				false,
+				false)
+		{
+		}
+
+		public SettingsProperty (string name,
+					 Type propertyType,
+					 SettingsProvider provider,
+					 bool isReadOnly,
+					 object defaultValue,
+					 SettingsSerializeAs serializeAs,
+					 SettingsAttributeDictionary attributes,
+					 bool throwOnErrorDeserializing,
+					 bool throwOnErrorSerializing)
+		{
+			this.name = name;
+			this.propertyType = propertyType;
+			this.provider = provider;
+			this.isReadOnly = isReadOnly;
+			this.defaultValue = defaultValue;
+			this.serializeAs = serializeAs;
+			this.attributes = attributes;
+			this.throwOnErrorDeserializing = throwOnErrorDeserializing;
+			this.throwOnErrorSerializing = throwOnErrorSerializing;
+		}
+
+		public virtual SettingsAttributeDictionary Attributes {
+			get {
+				return attributes;
+			}
+		}
+
+		public virtual object DefaultValue {
+			get {
+				return defaultValue;
+			}
+			set {
+				defaultValue = value;
+			}
+		}
+
+		public virtual bool IsReadOnly {
+			get {
+				return isReadOnly;
+			}
+			set {
+				isReadOnly = value;
+			}
+		}
+
+		public virtual string Name {
+			get {
+				return name;
+			}
+			set {
+				name = value;
+			}
+		}
+
+		public virtual Type PropertyType {
+			get {
+				return propertyType;
+			}
+			set {
+				propertyType = value;
+			}
+		}
+
+		public virtual SettingsProvider Provider {
+			get {
+				return provider;
+			}
+			set {
+				provider = value;
+			}
+		}
+
+		public virtual SettingsSerializeAs SerializeAs {
+			get {
+				return serializeAs;
+			}
+			set {
+				serializeAs = value;
+			}
+		}
+
+		public bool ThrowOnErrorDeserializing {
+			get {
+				return throwOnErrorDeserializing;
+			}
+			set {
+				throwOnErrorDeserializing = value;
+			}
+		}
+
+		public bool ThrowOnErrorSerializing {
+			get {
+				return throwOnErrorSerializing;
+			}
+			set {
+				throwOnErrorSerializing = value;
+			}
+		}
+
+		string name;
+		Type propertyType;
+		SettingsProvider provider;
+		bool isReadOnly;
+		object defaultValue;
+		SettingsSerializeAs serializeAs;
+		SettingsAttributeDictionary attributes;
+		bool throwOnErrorDeserializing;
+		bool throwOnErrorSerializing;
+	}
+
+}
+
+#endif

+ 130 - 0
mcs/class/System/System.Configuration/SettingsPropertyCollection.cs

@@ -0,0 +1,130 @@
+//
+// System.Web.UI.WebControls.SettingsPropertyCollection.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.Collections;
+using System.Configuration.Provider;
+
+namespace System.Configuration
+{
+
+	public class SettingsPropertyCollection : ICloneable, ICollection, IEnumerable
+	{
+		public SettingsPropertyCollection ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void Add (SettingsProperty property)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void Clear ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public object Clone ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void CopyTo (Array array, int index)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public IEnumerator GetEnumerator ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void Remove (string name)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void SetReadOnly ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		protected void OnAdd (SettingsProperty property)
+		{
+		}
+
+		protected void OnAddComplete (SettingsProperty property)
+		{
+		}
+
+		protected void OnClear ()
+		{
+		}
+
+		protected void OnClearComplete ()
+		{
+		}
+
+		protected void OnRemove (SettingsProperty property)
+		{
+		}
+
+		protected void OnRemoveComplete (SettingsProperty property)
+		{
+		}
+
+		public int Count {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool IsSynchronized {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public SettingsProperty this [ string name ] {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public object SyncRoot {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+	}
+
+}
+
+#endif

+ 99 - 0
mcs/class/System/System.Configuration/SettingsPropertyValue.cs

@@ -0,0 +1,99 @@
+//
+// System.Web.UI.WebControls.SettingsPropertyValue.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+
+namespace System.Configuration
+{
+
+	public class SettingsPropertyValue
+	{
+		public SettingsPropertyValue (SettingsProperty property)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public bool Deserialized {
+			get {
+				throw new NotImplementedException ();
+			}
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool IsDirty {
+			get {
+				throw new NotImplementedException ();
+			}
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public string Name {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public SettingsProperty Property {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public object PropertyValue {
+			get {
+				throw new NotImplementedException ();
+			}
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public object SerializedValue {
+			get {
+				throw new NotImplementedException ();
+			}
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool UsingDefaultValue {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+	}
+
+}
+
+#endif

+ 106 - 0
mcs/class/System/System.Configuration/SettingsPropertyValueCollection.cs

@@ -0,0 +1,106 @@
+//
+// System.Web.UI.WebControls.SettingsPropertyValueCollection.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.Collections;
+using System.Configuration.Provider;
+
+namespace System.Configuration
+{
+
+	public class SettingsPropertyValueCollection : ICloneable, ICollection, IEnumerable
+	{
+		public SettingsPropertyValueCollection ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void Add (SettingsPropertyValue property)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void Clear ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public object Clone ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void CopyTo (Array array, int index)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public IEnumerator GetEnumerator ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void Remove (string name)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public void SetReadOnly ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public int Count {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool IsSynchronized {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public SettingsPropertyValue this [ string name ] {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public object SyncRoot {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+	}
+
+}
+
+#endif

+ 54 - 0
mcs/class/System/System.Configuration/SettingsProvider.cs

@@ -0,0 +1,54 @@
+//
+// System.Web.UI.WebControls.SettingsProvider.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+
+using System.Configuration.Provider;
+
+namespace System.Configuration
+{
+
+	public abstract class SettingsProvider : ProviderBase
+	{
+		protected SettingsProvider ()
+		{
+		}
+
+		public abstract SettingsPropertyValueCollection GetPropertyValues (SettingsContext context,
+										   SettingsPropertyCollection collection);
+
+		public abstract void SetPropertyValues (SettingsContext context,
+							SettingsPropertyValueCollection collection);
+
+		public abstract string ApplicationName { get; set; }
+	}
+
+}
+
+#endif

+ 55 - 0
mcs/class/System/System.Configuration/SettingsProviderCollection.cs

@@ -0,0 +1,55 @@
+//
+// System.Web.UI.WebControls.SettingsProviderCollection.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+using System.Configuration.Provider;
+
+namespace System.Configuration
+{
+	public class SettingsProviderCollection : System.Configuration.Provider.ProviderCollection
+	{
+		public SettingsProviderCollection ()
+		{
+				throw new NotImplementedException ();
+		}
+
+		public override void Add (ProviderBase provider)
+		{
+				throw new NotImplementedException ();
+		}
+
+		public new SettingsProvider this [ string name ] { 
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+	}
+}
+
+#endif

+ 43 - 0
mcs/class/System/System.Configuration/SettingsSerializeAs.cs

@@ -0,0 +1,43 @@
+//
+// System.Web.UI.WebControls.SettingsSerializeAs.cs
+//
+// Authors:
+//	Chris Toshok ([email protected])
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System;
+
+namespace System.Configuration
+{
+	public enum SettingsSerializeAs
+	{
+		String = 0,
+		Xml = 1,
+		Binary = 2,
+		ProviderSpecific = 3
+	}
+}
+
+#endif