| DirectoryRemoveAllAccessRules Method |
Removes all 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 RemoveAllAccessRules(
string path,
ref DirectorySecurity security,
bool commitChanges
)
Public Shared Function RemoveAllAccessRules (
path As String,
ByRef security As DirectorySecurity,
commitChanges As Boolean
) As Boolean
public:
static bool RemoveAllAccessRules(
String^ path,
DirectorySecurity^% security,
bool commitChanges
)
static member RemoveAllAccessRules :
path : string *
security : DirectorySecurity byref *
commitChanges : bool -> bool
Parameters
- path
- Type: SystemString
The path to the directory to remove all access rules from. - 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:
BooleanTrue if all rules were removed. False if an error occurred.
See Also