Click or drag to resize
Task Scheduler Managed Class Library

TaskGetAccessControl(AccessControlSections) Method

Gets a TaskSecurity object that encapsulates the specified type of access control list (ACL) entries for the task described by the current Task object.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public TaskSecurity GetAccessControl(
	AccessControlSections includeSections
)
Request Example View Source

Parameters

includeSections  AccessControlSections
One of the AccessControlSections values that specifies which group of access control entries to retrieve.

Return Value

TaskSecurity
A TaskSecurity object that encapsulates the access control rules for the current task.
See Also