Click or drag to resize
Task Scheduler Managed Class Library

TaskAccessRule Class

Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  System.Security.AccessControlAuthorizationRule
    System.Security.AccessControlAccessRule
      Microsoft.Win32.TaskSchedulerTaskAccessRule

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public sealed class TaskAccessRule : AccessRule
Request Example View Source

The TaskAccessRule type exposes the following members.

Constructors
 NameDescription
Public methodTaskAccessRule(IdentityReference, TaskRights, AccessControlType) Initializes a new instance of the TaskAccessRule class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.
Public methodTaskAccessRule(String, TaskRights, AccessControlType) Initializes a new instance of the TaskAccessRule class, specifying the name of the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.
Top
Properties
 NameDescription
Public propertyTaskRights Gets the rights allowed or denied by the access rule.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also