Click or drag to resize
Task Scheduler Managed Class Library

TaskSecuritySetAuditRule Method

Removes all audit rules with the same user as the specified rule, regardless of the AuditFlags value, and then adds the specified rule.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public void SetAuditRule(
	TaskAuditRule rule
)
Request Example View Source

Parameters

rule
Type: Microsoft.Win32.TaskSchedulerTaskAuditRule
The TaskAuditRule to add. The user specified by this rule determines the rules to remove before this rule is added.
See Also