TaskAuditRule Constructor

Initializes a new instance of the TaskAuditRule class, specifying the user or group to audit, the rights to audit, and whether to audit success, failure, or both.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public TaskAuditRule(
	IdentityReference identity,
	TaskRights eventRights,
	AuditFlags flags
)

Parameters

identity  IdentityReference
The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as NTAccount that can be converted to type SecurityIdentifier.
eventRights  TaskRights
A bitwise combination of TaskRights values specifying the kinds of access to audit.
flags  AuditFlags
The audit flags.

See Also