2 // System.Web.Configuration.RootProfilePropertySettingsCollection
5 // Chris Toshok (toshok@ximian.com)
7 // (C) 2005 Novell, Inc (http://www.novell.com)
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 using System.Configuration;
37 namespace System.Web.Configuration
39 [ConfigurationCollection (typeof (ProfilePropertySettings), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
40 public sealed class RootProfilePropertySettingsCollection : ProfilePropertySettingsCollection
42 static ConfigurationPropertyCollection properties;
43 static ConfigurationProperty groupSettingsProp;
45 static RootProfilePropertySettingsCollection ()
47 groupSettingsProp = new ConfigurationProperty ("group", typeof (ProfileGroupSettingsCollection), null);
49 properties = new ConfigurationPropertyCollection ();
50 properties.Add (groupSettingsProp);
53 public RootProfilePropertySettingsCollection ()
58 public override bool Equals (object rootProfilePropertySettingsCollection)
60 throw new NotImplementedException ();
64 public override int GetHashCode ()
66 throw new NotImplementedException ();
70 protected override bool IsModified ()
72 return base.IsModified ();
76 protected override bool OnDeserializeUnrecognizedElement (string elementName, XmlReader reader)
78 throw new NotImplementedException ();
82 protected override void Reset (ConfigurationElement parentElement)
84 base.Reset (parentElement);
88 protected override void ResetModified ()
90 base.ResetModified ();
94 protected override bool SerializeElement (XmlWriter writer, bool serializeCollectionKey)
96 bool ret = base.SerializeElement (writer, serializeCollectionKey);
98 /* XXX more here? .. */
104 protected override void Unmerge (ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode)
106 throw new NotImplementedException ();
110 protected override bool AllowClear {
111 get { throw new NotImplementedException (); }
114 [ConfigurationProperty ("group")]
115 public ProfileGroupSettingsCollection GroupSettings {
116 get { return (ProfileGroupSettingsCollection) base [groupSettingsProp]; }
119 protected override ConfigurationPropertyCollection Properties {
120 get { return properties; }
124 protected override bool ThrowOnDuplicate {
125 get { throw new NotImplementedException (); }