Ver Fonte

* ProfileGroupSettingsCollection.cs: added ResetInternal internal method
* RootProfilePropertySettingsCollection.cs: added Reset method override to reset GroupSettings collection

svn path=/trunk/mcs/; revision=82020

Vladimir Krasnov há 18 anos atrás
pai
commit
596f7c8471

+ 7 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,3 +1,10 @@
+2007-07-16  Vladimir Krasnov  <[email protected]>
+
+	* ProfileGroupSettingsCollection.cs: added ResetInternal internal
+	method
+	* RootProfilePropertySettingsCollection.cs: added Reset method
+	override to reset GroupSettings collection
+
 2007-06-24  Vladimir Krasnov  <[email protected]>
 
 	* HttpHandlerAction.cs: fixed SplitPaths property to be thread safe

+ 4 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ProfileGroupSettingsCollection.cs

@@ -115,6 +115,10 @@ namespace System.Web.Configuration
 			get { return (ProfileGroupSettings) BaseGet (name); }
 		}
 
+		internal void ResetInternal (ConfigurationElement parentElement)
+		{
+			Reset (parentElement);
+		}
 	}
 
 }

+ 11 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/RootProfilePropertySettingsCollection.cs

@@ -85,6 +85,17 @@ namespace System.Web.Configuration
 		public ProfileGroupSettingsCollection GroupSettings {
 			get { return (ProfileGroupSettingsCollection) base [""]; }
 		}
+
+		protected override void Reset (ConfigurationElement parentElement)
+		{
+			base.Reset (parentElement);
+
+			RootProfilePropertySettingsCollection root = (RootProfilePropertySettingsCollection) parentElement;
+			if (root == null)
+				return;
+
+			GroupSettings.ResetInternal (root.GroupSettings);
+		}
 	}
 }