 | 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
Syntaxpublic override AccessRule AccessRuleFactory(
IdentityReference identityReference,
int accessMask,
bool isInherited,
InheritanceFlags inheritanceFlags,
PropagationFlags propagationFlags,
AccessControlType type
)
Public Overrides Function AccessRuleFactory (
identityReference As IdentityReference,
accessMask As Integer,
isInherited As Boolean,
inheritanceFlags As InheritanceFlags,
propagationFlags As PropagationFlags,
type As AccessControlType
) As AccessRule
public:
virtual AccessRule^ AccessRuleFactory(
IdentityReference^ identityReference,
int accessMask,
bool isInherited,
InheritanceFlags inheritanceFlags,
PropagationFlags propagationFlags,
AccessControlType type
) override
Request Example
View SourceParameters
- 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