Muokkaa

Jaa


FileSystemAclExtensions Class

Definition

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.

Applies to