Directory Methods |
The Directory type exposes the following members.
| Name | Description | |
|---|---|---|
| AddAccessRule |
Adds an access rule to the directory at the supplied path.
| |
| BlockInheritance |
Blocks inheritance on this directory.
| |
| Clone |
Clones a directory to a new location. Does not copy any files or folders beneath it.
| |
| CommitChanges |
Commits any pending changes to the directory specified by the supplied path.
| |
| Copy |
Copies a directory to a new location including all files and folders beneath it.
Creates a new directory if necessary.
| |
| Create |
Creates a directory at the specified path.
| |
| Delete |
Deletes a directory at the specified path.
| |
| Exists |
Checks whether the directory at the specified path exists on the file system.
| |
| GetListing |
Gets a list of the contents of a directory at the specified path.
| |
| GetSecurityObject |
Gets the DirectorySecurity object for the directory specified by the supplied path.
| |
| GetSizeInBytes |
Gets the size of a directory's contents in bytes.
| |
| GiveAccess(DirectoryAccessRights, Byte, String, DirectorySecurity, Boolean) |
Gives the supplied data access rights to the account with the supplied security
identifier on the target directory. Applies inherited permissions to folders and
files beneath the target directory.
| |
| GiveAccess(DirectoryAccessRights, DirectoryEntry, String, DirectorySecurity, Boolean) |
Gives the supplied data access rights to the entry supplied on the target directory.
Applies inherited permissions to folders and files beneath the target directory.
| |
| GiveAccess(Byte, String, DirectorySecurity, FileSystemRights, Boolean, Boolean, Boolean) |
Gives access to the account with the supplied security identifier on the target directory.
| |
| GiveAccess(DirectoryEntry, String, DirectorySecurity, FileSystemRights, Boolean, Boolean, Boolean) |
Gives access to the entry supplied on the target directory.
| |
| GiveAccess(DirectoryAccessRights, Byte, String, DirectorySecurity, Boolean, Boolean, Boolean) |
Gives the supplied data access rights to the account with the supplied security identifier on the target directory.
| |
| GiveAccess(DirectoryAccessRights, DirectoryEntry, String, DirectorySecurity, Boolean, Boolean, Boolean) |
Gives the supplied data access rights to the entry supplied on the target directory.
| |
| Move |
Moves a directory to a new location.
| |
| RemoveAllAccessRules |
Removes all access rules from the supplied directory.
| |
| RemoveAllExplicitAccessRules |
Removes all explicit access rules from the supplied directory.
| |
| SetOwner(String, DirectorySecurity, Byte, Boolean) |
Sets the owner of a directory.
| |
| SetOwner(String, DirectorySecurity, DirectoryEntry, Boolean) |
Sets the owner of a directory.
|