Click or drag to resize
Task Scheduler Managed Class Library

TaskSecurity Constructor (TaskFolder, AccessControlSections)

Initializes a new instance of the TaskSecurity class with the specified sections of the access control security rules from the specified task.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public TaskSecurity(
	TaskFolder folder,
	AccessControlSections sections = AccessControlSections.Access|AccessControlSections.Owner|AccessControlSections.Group
)
Request Example View Source

Parameters

folder
Type: Microsoft.Win32.TaskSchedulerTaskFolder
The folder.
sections (Optional)
Type: System.Security.AccessControlAccessControlSections
The sections of the ACL to retrieve.
See Also