TaskSecurityAddAuditRule Method
Searches for an audit 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 AddAuditRule(
TaskAuditRule rule
)
Parameters
- rule TaskAuditRule
- The audit rule to add. The user specified by this rule determines the search.