TaskSecurityAddAccessRule Method
Searches for a matching rule with which the new rule can be merged. If none are found, adds the new rule.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public void AddAccessRule(
TaskAccessRule rule
)
Parameters
- rule TaskAccessRule
- The access control rule to add.