Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2005-12-14 Sebastien Pouliot <sebastien@ximian.com>

	* AccessControlSections.cs: New (2.0). Enum required for DirectoryInfo
	* DirectorySecurity.cs: New (2.0). Partial stub for DirectoryInfo


svn path=/trunk/mcs/; revision=54392
  • Loading branch information...
commit 7a037e0b59242ca3fd09717605b5a88e8252d2f6 1 parent 5a5452d
Sebastien Pouliot authored
View
44 mcs/class/corlib/System.Security.AccessControl/AccessControlSections.cs
@@ -0,0 +1,44 @@
+//
+// System.Security.AccessControl.AccessControlSections enum
+//
+// Author:
+// Sebastien Pouliot <sebastien@ximian.com>
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Security.AccessControl {
+
+ [Flags]
+ public enum AccessControlSections {
+ None,
+ Audit = 1,
+ Access = 2,
+ Owner = 4,
+ Group = 8,
+ All = Audit | Access | Owner | Group
+ }
+}
+
+#endif
View
5 mcs/class/corlib/System.Security.AccessControl/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-14 Sebastien Pouliot <sebastien@ximian.com>
+
+ * AccessControlSections.cs: New (2.0). Enum required for DirectoryInfo
+ * DirectorySecurity.cs: New (2.0). Partial stub for DirectoryInfo
+
2005-04-22 Sebastien Pouliot <sebastien@ximian.com>
* AccessControlActions.cs: Removed [ComVisible] and [Serializable] to
View
45 mcs/class/corlib/System.Security.AccessControl/DirectorySecurity.cs
@@ -0,0 +1,45 @@
+//
+// System.Security.AccessControl.DirectorySecurity implementation
+//
+// Author:
+// Sebastien Pouliot <sebastien@ximian.com>
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+namespace System.Security.AccessControl {
+
+ [MonoTODO ("required for System.IO.DirectoryInfo - implementation is missing")]
+ public sealed class DirectorySecurity {
+
+ public DirectorySecurity ()
+ {
+ throw new PlatformNotSupportedException ();
+ }
+
+ // TODO
+ }
+}
+
+#endif
Please sign in to comment.
Something went wrong with that request. Please try again.