| DirectoryGiveAccess Method (DirectoryAccessRights, DirectoryEntry, String, DirectorySecurity, Boolean, Boolean, Boolean) |
Gives the supplied data access rights to the entry supplied on the target directory.
Namespace:
Galactic.FileSystem
Assembly:
Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public static bool GiveAccess(
DirectoryAccessRights rights,
DirectoryEntry entry,
string path,
ref DirectorySecurity security,
bool applyToSubfolders,
bool applyToFiles,
bool commitChanges
)
Public Shared Function GiveAccess (
rights As DirectoryAccessRights,
entry As DirectoryEntry,
path As String,
ByRef security As DirectorySecurity,
applyToSubfolders As Boolean,
applyToFiles As Boolean,
commitChanges As Boolean
) As Boolean
public:
static bool GiveAccess(
DirectoryAccessRights rights,
DirectoryEntry^ entry,
String^ path,
DirectorySecurity^% security,
bool applyToSubfolders,
bool applyToFiles,
bool commitChanges
)
static member GiveAccess :
rights : DirectoryAccessRights *
entry : DirectoryEntry *
path : string *
security : DirectorySecurity byref *
applyToSubfolders : bool *
applyToFiles : bool *
commitChanges : bool -> bool
Parameters
- rights
- Type: Galactic.FileSystemDirectoryAccessRights
The rights to apply to the target directory. - entry
- Type: System.DirectoryServicesDirectoryEntry
The entry to give data access. - path
- Type: SystemString
The path to the directory to have access granted on. - security
- Type: System.Security.AccessControlDirectorySecurity
The DirectorySecurity object of the directory that will be changed. - applyToSubfolders
- Type: SystemBoolean
Indicates whether this directory's permissions apply to subfolders beneath it. - applyToFiles
- Type: SystemBoolean
Indicates whether this directory's permissions apply to files beneath it. - commitChanges
- Type: SystemBoolean
Indicates whether changes should be commited to this directory. Useful when combining multiple commands.
Return Value
Type:
BooleanTrue if access was granted. False otherwise.
See Also