Click or drag to resize
Task Scheduler Managed Class Library

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.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public void AddAuditRule(
	TaskAuditRule rule
)
Request Example View Source

Parameters

rule
Type: Microsoft.Win32.TaskSchedulerTaskAuditRule
The audit rule to add. The user specified by this rule determines the search.
See Also