TaskAccessRule(IdentityReference, TaskRights, AccessControlType) Constructor

Initializes a new instance of the TaskAccessRule class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public TaskAccessRule(
	IdentityReference identity,
	TaskRights eventRights,
	AccessControlType type
)

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 rights allowed or denied.
type  AccessControlType
One of the AccessControlType values specifying whether the rights are allowed or denied.

See Also