Click or drag to resize
Task Scheduler Managed Class Library

TaskAccessRule Constructor (IdentityReference, TaskRights, AccessControlType)

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.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public TaskAccessRule(
	IdentityReference identity,
	TaskRights eventRights,
	AccessControlType type
)
Request Example View Source

Parameters

identity
Type: System.Security.PrincipalIdentityReference
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
Type: Microsoft.Win32.TaskSchedulerTaskRights
A bitwise combination of TaskRights values specifying the rights allowed or denied.
type
Type: System.Security.AccessControlAccessControlType
One of the AccessControlType values specifying whether the rights are allowed or denied.
See Also