TaskSecurityAccessRuleFactory Method

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

Definition

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

Parameters

identityReference  IdentityReference
An IdentityReference that identifies the user or group the rule applies to.
accessMask  Int32
A bitwise combination of TaskRights values specifying the access rights to allow or deny, cast to an integer.
isInherited  Boolean
Meaningless for tasks, because they have no hierarchy.
inheritanceFlags  InheritanceFlags
Meaningless for tasks, because they have no hierarchy.
propagationFlags  PropagationFlags
Meaningless for tasks, because they have no hierarchy.
type  AccessControlType
One of the AccessControlType values specifying whether the rights are allowed or denied.

Return Value

AccessRule
The AccessRule object that this method creates.

See Also