mscorlib(4.0.0.0) API with additions
DirectorySecurity.cs
1 using System.IO;
3 
5 {
7  public sealed class DirectorySecurity : FileSystemSecurity
8  {
11  [SecuritySafeCritical]
13  : base(isContainer: true)
14  {
15  }
16 
31  [SecuritySafeCritical]
32  [SecurityPermission(SecurityAction.Assert, UnmanagedCode = true)]
33  public DirectorySecurity(string name, AccessControlSections includeSections)
34  : base(isContainer: true, name, includeSections, isDirectory: true)
35  {
36  string fullPathInternal = Path.GetFullPathInternal(name);
37  FileIOPermission.QuickDemand(FileIOPermissionAccess.NoAccess, AccessControlActions.View, fullPathInternal, checkForDuplicates: false, needFullPath: false);
38  }
39  }
40 }
Describes a set of security permissions applied to code. This class cannot be inherited.
FileIOPermissionAccess
Specifies the type of file access requested.
Represents the access control and audit security for a file or directory.
Definition: __Canon.cs:3
Represents the access control and audit security for a directory. This class cannot be inherited.
SecurityAction
Specifies the security actions that can be performed using declarative security.
DirectorySecurity(string name, AccessControlSections includeSections)
Initializes a new instance of the T:System.Security.AccessControl.DirectorySecurity class from a spec...
AccessControlActions
Specifies the actions that are permitted for securable objects.
DirectorySecurity()
Initializes a new instance of the T:System.Security.AccessControl.DirectorySecurity class.
Controls the ability to access files and folders. This class cannot be inherited.
AccessControlSections
Specifies which sections of a security descriptor to save or load.
Performs operations on T:System.String instances that contain file or directory path information....
Definition: Path.cs:13