Click or drag to resize
Task Scheduler Managed Class Library

TaskSecurity Methods

The TaskSecurity type exposes the following members.

Methods
 NameDescription
Public methodAccessRuleFactory Creates a new access control rule for the specified user, with the specified access rights, access control, and flags.
(Overrides ObjectSecurityAccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType))
Public methodAddAccessRule Searches for a matching rule with which the new rule can be merged. If none are found, adds the new rule.
Public methodAddAuditRule Searches for an audit rule with which the new rule can be merged. If none are found, adds the new rule.
Public methodAuditRuleFactory Creates a new audit rule, specifying the user the rule applies to, the access rights to audit, and the outcome that triggers the audit rule.
(Overrides ObjectSecurityAuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags))
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)
Protected methodPersist Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical. For more information, see Remarks.
(Overrides ObjectSecurityPersist(String, AccessControlSections))
Public methodRemoveAccessRule Searches for an access control rule with the same user and AccessControlType (allow or deny) as the specified rule, and with compatible inheritance and propagation flags; if such a rule is found, the rights contained in the specified access rule are removed from it.
Public methodRemoveAccessRuleAll Searches for all access control rules with the same user and AccessControlType (allow or deny) as the specified rule and, if found, removes them.
Public methodRemoveAccessRuleSpecific Searches for an access control rule that exactly matches the specified rule and, if found, removes it.
Public methodRemoveAuditRule Searches for an audit control rule with the same user as the specified rule, and with compatible inheritance and propagation flags; if a compatible rule is found, the rights contained in the specified rule are removed from it.
Public methodRemoveAuditRuleAll Searches for all audit rules with the same user as the specified rule and, if found, removes them.
Public methodRemoveAuditRuleSpecific Searches for an audit rule that exactly matches the specified rule and, if found, removes it.
Public methodResetAccessRule Removes all access control rules with the same user as the specified rule, regardless of AccessControlType, and then adds the specified rule.
Public methodSetAccessRule Removes all access control rules with the same user and AccessControlType (allow or deny) as the specified rule, and then adds the specified rule.
Public methodSetAuditRule Removes all audit rules with the same user as the specified rule, regardless of the AuditFlags value, and then adds the specified rule.
Public methodToString Returns a String that represents this instance.
(Overrides ObjectToString)
Top
See Also