FileSystemAclExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides Windows-specific static extension methods for manipulating Access Control List (ACL) security attributes for files and directories.
public ref class FileSystemAclExtensions abstract sealed
public static class FileSystemAclExtensions
[System.Security.SecurityCritical]
public static class FileSystemAclExtensions
type FileSystemAclExtensions = class
[<System.Security.SecurityCritical>]
type FileSystemAclExtensions = class
Public Module FileSystemAclExtensions
- Inheritance
-
FileSystemAclExtensions
- Attributes
Methods
Create(DirectoryInfo, DirectorySecurity) |
Creates a new directory, ensuring it is created with the specified directory security. If the directory already exists, nothing is done. |
Create(FileInfo, FileMode, FileSystemRights, FileShare, Int32, FileOptions, FileSecurity) |
Creates a new file stream, ensuring it is created with the specified properties and security settings. |
CreateDirectory(DirectorySecurity, String) |
Creates a directory and returns it, ensuring it is created with the specified directory security. If the directory already exists, the existing directory is returned. |
GetAccessControl(DirectoryInfo, AccessControlSections) |
Returns the security information of a directory. |
GetAccessControl(DirectoryInfo) |
Returns the security information of a directory. |
GetAccessControl(FileInfo, AccessControlSections) |
Returns the security information of a file. |
GetAccessControl(FileInfo) |
Returns the security information of a file. |
GetAccessControl(FileStream) |
Returns the security information of a file. |
SetAccessControl(DirectoryInfo, DirectorySecurity) |
Changes the security attributes of an existing directory. |
SetAccessControl(FileInfo, FileSecurity) |
Changes the security attributes of an existing file. |
SetAccessControl(FileStream, FileSecurity) |
Changes the security attributes of an existing file. |