[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL...
[mono.git] / mcs / class / corlib / Microsoft.Win32 / RegistryKey.cs
index b85512ed2cbd3066d657febac25517b53956aae0..2d742a6ee9385007de91fb0778d6a17ee4953dd6 100644 (file)
@@ -470,12 +470,14 @@ namespace Microsoft.Win32
 
                public RegistrySecurity GetAccessControl ()
                {
-                       throw new NotImplementedException ();
+                       return GetAccessControl (AccessControlSections.Owner |
+                                                AccessControlSections.Group |
+                                                AccessControlSections.Access);
                }
                
                public RegistrySecurity GetAccessControl (AccessControlSections includeSections)
                {
-                       throw new NotImplementedException ();
+                       return new RegistrySecurity (Name, includeSections);
                }
                
                
@@ -579,7 +581,10 @@ namespace Microsoft.Win32
                
                public void SetAccessControl (RegistrySecurity registrySecurity)
                {
-                       throw new NotImplementedException ();
+                       if (null == registrySecurity)
+                               throw new ArgumentNullException ("registrySecurity");
+                               
+                       registrySecurity.PersistModifications (Name);
                }