Merge pull request #2419 from esdrubal/xmlsubclassel
[mono.git] / mcs / class / corlib / System.Security.AccessControl / FileSecurity.cs
index e72559ab0aab01b6431471c92ce71df1e29708f4..046d34225e4e154b10278b68566e13432d982093 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
+using System.Runtime.InteropServices;
 
-namespace System.Security.AccessControl {
-       public sealed class FileSecurity : FileSystemSecurity {
+namespace System.Security.AccessControl
+{
+       public sealed class FileSecurity : FileSystemSecurity
+{
                public FileSecurity ()
+                       : base (false)
                {
-                       throw new PlatformNotSupportedException ();
                }
 
                public FileSecurity (string fileName,
                                     AccessControlSections includeSections)
+                       : base (false, fileName, includeSections)
+               {
+               }
+               
+               internal FileSecurity (SafeHandle handle,
+                                      AccessControlSections includeSections)
+                       : base (false, handle, includeSections)
                {
-                       throw new PlatformNotSupportedException ();
                }
        }
 }
 
-#endif