Click or drag to resize
Galactic API

DirectoryRemoveAllExplicitAccessRules Method

Removes all explicit access rules from the supplied directory.

Namespace:  Galactic.FileSystem
Assembly:  Galactic.FileSystem (in Galactic.FileSystem.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static bool RemoveAllExplicitAccessRules(
	string path,
	ref DirectorySecurity security,
	bool commitChanges
)

Parameters

path
Type: SystemString
The path to the directory to have access removed on.
security
Type: System.Security.AccessControlDirectorySecurity
The DirectorySecurity object of the directory that will be changed.
commitChanges
Type: SystemBoolean
Indicates whether changes should be commited to this directory. Useful when combining multiple commands.

Return Value

Type: Boolean
True if access was removed. False otherwise.
See Also