| FileRemoveAllExplicitAccessRules Method (String, FileSecurity, Boolean) |
Removes all explicit access rules from the supplied file.
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,
out FileSecurity security,
bool commitChanges
)
Public Shared Function RemoveAllExplicitAccessRules (
path As String,
<OutAttribute> ByRef security As FileSecurity,
commitChanges As Boolean
) As Boolean
public:
static bool RemoveAllExplicitAccessRules(
String^ path,
[OutAttribute] FileSecurity^% security,
bool commitChanges
)
static member RemoveAllExplicitAccessRules :
path : string *
security : FileSecurity byref *
commitChanges : bool -> bool
Parameters
- path
- Type: SystemString
The path to the file to have access removed on. - security
- Type: System.Security.AccessControlFileSecurity
The FileSecurity object of the file once changed. - commitChanges
- Type: SystemBoolean
Indicates whether changes should be commited to this file. Useful when combining multiple commands.
Return Value
Type:
BooleanTrue if access was removed. False otherwise.
See Also