TaskSecurityRemoveAccessRule Method
Searches for an access control rule with the same user and
AccessControlType (allow or deny) as the specified rule, and with compatible inheritance and propagation flags; if such a rule is found, the rights contained in the specified access rule are removed from it.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public bool RemoveAccessRule(
TaskAccessRule rule
)
- rule TaskAccessRule
- A TaskAccessRule that specifies the user and AccessControlType to search for, and a set of inheritance and propagation flags that a matching rule, if found, must be compatible with. Specifies the rights to remove from the compatible rule, if found.
Booleantrue if a compatible rule is found; otherwise
false.