Click or drag to resize
Task Scheduler Managed Class Library

TaskAccessRule Constructor (String, TaskRights, AccessControlType)

Initializes a new instance of the TaskAccessRule class, specifying the name of 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(
	string identity,
	TaskRights eventRights,
	AccessControlType type
)
Request Example View Source

Parameters

identity
Type: SystemString
The name of the user or group the rule applies to.
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