Click or drag to resize
Task Scheduler Managed Class Library

TaskSecurityAccessRuleFactory Method

Creates a new access control rule for the specified user, with the specified access rights, access control, and flags.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public override AccessRule AccessRuleFactory(
	IdentityReference identityReference,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	AccessControlType type
)
Request Example View Source

Parameters

identityReference
Type: System.Security.PrincipalIdentityReference
An IdentityReference that identifies the user or group the rule applies to.
accessMask
Type: SystemInt32
A bitwise combination of TaskRights values specifying the access rights to allow or deny, cast to an integer.
isInherited
Type: SystemBoolean
Meaningless for tasks, because they have no hierarchy.
inheritanceFlags
Type: System.Security.AccessControlInheritanceFlags
Meaningless for tasks, because they have no hierarchy.
propagationFlags
Type: System.Security.AccessControlPropagationFlags
Meaningless for tasks, because they have no hierarchy.
type
Type: System.Security.AccessControlAccessControlType
One of the AccessControlType values specifying whether the rights are allowed or denied.

Return Value

Type: AccessRule
The AccessRule object that this method creates.
See Also