Task Scheduler Managed Class Library
C#
Show/Hide TOC
Task
Security
Set
Access
Rule Method
Removes all access control rules with the same user and
AccessControlType
(allow or deny) as the specified rule, and then adds the specified rule.
Definition
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
C#
Copy
View Source
Request Example
public
void
SetAccessRule
(
TaskAccessRule
rule
)
Parameters
rule
TaskAccessRule
The
TaskAccessRule
to add. The user and
AccessControlType
of this rule determine the rules to remove before this rule is added.
See Also
Reference
TaskSecurity Class
Microsoft.Win32.TaskScheduler Namespace
In This Article
Definition
See Also