Click or drag to resize
Task Scheduler Managed Class Library

TaskAccessRule(String, TaskRights, AccessControlType) Constructor

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.12.0
Syntax
C#
public TaskAccessRule(
	string identity,
	TaskRights eventRights,
	AccessControlType type
)
Request Example View Source

Parameters

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