X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.AccessControl%2FFileSecurity.cs;h=046d34225e4e154b10278b68566e13432d982093;hb=ab5220be938aa5ca40a34854499fd38acd0f791e;hp=e72559ab0aab01b6431471c92ce71df1e29708f4;hpb=53e266903ec6b2d822cf5b0c566f6374df5307a4;p=mono.git diff --git a/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs b/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs index e72559ab0aa..046d34225e4 100644 --- a/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs +++ b/mcs/class/corlib/System.Security.AccessControl/FileSecurity.cs @@ -26,21 +26,28 @@ // 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