2006-01-09 Chris Toshok <toshok@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / RootProfilePropertySettingsCollection.cs
1 //
2 // System.Web.Configuration.RootProfilePropertySettingsCollection
3 //
4 // Authors:
5 //      Chris Toshok (toshok@ximian.com)
6 //
7 // (C) 2005 Novell, Inc (http://www.novell.com)
8 //
9
10 //
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:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
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.
29 //
30
31 #if NET_2_0
32
33 using System;
34 using System.Configuration;
35 using System.Xml;
36
37 namespace System.Web.Configuration
38 {
39         [ConfigurationCollection (typeof (ProfilePropertySettings), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
40         public sealed class RootProfilePropertySettingsCollection : ProfilePropertySettingsCollection
41         {
42                 static ConfigurationPropertyCollection properties;
43                 static ConfigurationProperty groupSettingsProp;
44
45                 static RootProfilePropertySettingsCollection ()
46                 {
47                         groupSettingsProp = new ConfigurationProperty ("group", typeof (ProfileGroupSettingsCollection), null);
48
49                         properties = new ConfigurationPropertyCollection ();
50                         properties.Add (groupSettingsProp);
51                 }
52
53                 public RootProfilePropertySettingsCollection ()
54                 {
55                 }
56
57                 [MonoTODO]
58                 public override bool Equals (object rootProfilePropertySettingsCollection)
59                 {
60                         throw new NotImplementedException ();
61                 }
62
63                 [MonoTODO]
64                 public override int GetHashCode ()
65                 {
66                         throw new NotImplementedException ();
67                 }
68
69                 [MonoTODO]
70                 protected override bool IsModified ()
71                 {
72                         return base.IsModified ();
73                 }
74
75                 [MonoTODO]
76                 protected override bool OnDeserializeUnrecognizedElement (string elementName, XmlReader reader)
77                 {
78                         throw new NotImplementedException ();
79                 }
80
81                 [MonoTODO]
82                 protected override void Reset (ConfigurationElement parentElement)
83                 {
84                         base.Reset (parentElement);
85                 }
86
87                 [MonoTODO]
88                 protected override void ResetModified ()
89                 {
90                         base.ResetModified ();
91                 }
92
93                 [MonoTODO]
94                 protected override bool SerializeElement (XmlWriter writer, bool serializeCollectionKey)
95                 {
96                         bool ret = base.SerializeElement (writer, serializeCollectionKey);
97
98                         /* XXX more here? .. */
99
100                         return ret;
101                 }
102
103                 [MonoTODO]
104                 protected override void Unmerge (ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode)
105                 {
106                         throw new NotImplementedException ();
107                 }
108
109                 [MonoTODO]
110                 protected override bool AllowClear {
111                         get { throw new NotImplementedException (); }
112                 }
113
114                 [ConfigurationProperty ("group")]
115                 public ProfileGroupSettingsCollection GroupSettings {
116                         get { return (ProfileGroupSettingsCollection) base [groupSettingsProp]; }
117                 }
118
119                 protected override ConfigurationPropertyCollection Properties {
120                         get { return properties; }
121                 }
122
123                 [MonoTODO]
124                 protected override bool ThrowOnDuplicate {
125                         get { throw new NotImplementedException (); }
126                 }
127         }
128
129 }
130
131 #endif