Export (0) Print
Expand All

ActiveDirectorySecurity Methods

The ActiveDirectorySecurity type exposes the following members.

  Name Description
Public method AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) Creates an AccessRule object with the specified values. (Overrides ObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType).)
Public method AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid) Creates an AccessRule object with the specified values. (Overrides DirectoryObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid).)
Public method AddAccessRule(ActiveDirectoryAccessRule) Adds an access rule to the DACL of an object.
Protected method AddAccessRule(ObjectAccessRule) Adds the specified access rule to the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method AddAuditRule(ActiveDirectoryAuditRule) Adds an audit rule to the SACL of an object.
Protected method AddAuditRule(ObjectAuditRule) Adds the specified audit rule to the System Access Control List (SACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags) Creates an AuditRule object with the specified values. (Overrides ObjectSecurity.AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags).)
Public method AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags, Guid, Guid) Creates an AuditRule object with the specified values. (Overrides DirectoryObjectSecurity.AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags, Guid, Guid).)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAccessRules Gets a collection of the access rules associated with the specified security identifier. (Inherited from DirectoryObjectSecurity.)
Public method GetAuditRules Gets a collection of the audit rules associated with the specified security identifier. (Inherited from DirectoryObjectSecurity.)
Public method GetGroup Gets the primary group associated with the specified owner. (Inherited from ObjectSecurity.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetOwner Gets the owner associated with the specified primary group. (Inherited from ObjectSecurity.)
Public method GetSecurityDescriptorBinaryForm Returns an array of byte values that represents the security descriptor information for this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public method GetSecurityDescriptorSddlForm Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method ModifyAccess Applies the specified modification to the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method ModifyAccessRule Applies the specified modification to the specified AccessRule. (Overrides ObjectSecurity.ModifyAccessRule(AccessControlModification, AccessRule, Boolean).)
Protected method ModifyAudit Applies the specified modification to the System Access Control List (SACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method ModifyAuditRule Applies the specified modification to the specified AuditRule. (Overrides ObjectSecurity.ModifyAuditRule(AccessControlModification, AuditRule, Boolean).)
Protected method Persist(SafeHandle, AccessControlSections) 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. (Inherited from ObjectSecurity.)
Protected method Persist(String, AccessControlSections) 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. (Inherited from ObjectSecurity.)
Protected method Persist(Boolean, String, AccessControlSections) 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. (Inherited from ObjectSecurity.)
Public method PurgeAccessRules Removes all access rules associated with the specified IdentityReference. (Overrides ObjectSecurity.PurgeAccessRules(IdentityReference).)
Public method PurgeAuditRules Removes all audit rules associated with the specified IdentityReference. (Overrides ObjectSecurity.PurgeAuditRules(IdentityReference).)
Protected method ReadLock Locks this ObjectSecurity object for read access. (Inherited from ObjectSecurity.)
Protected method ReadUnlock Unlocks this ObjectSecurity object for read access. (Inherited from ObjectSecurity.)
Public method RemoveAccess Removes all access rules that have the specified IdentityReference object and AccessControlType object from the DACL of an object.
Public method RemoveAccessRule(ActiveDirectoryAccessRule) Removes all access rules that contain the same security identifier and access mask as the specified access rule from the DACL of an object.
Protected method RemoveAccessRule(ObjectAccessRule) Removes access rules that contain the same security identifier and access mask as the specified access rule from the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Protected method RemoveAccessRuleAll Removes all access rules that have the same security identifier as the specified access rule from the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method RemoveAccessRuleSpecific(ActiveDirectoryAccessRule) Removes all access rules that exactly match the specified access rule from the DACL of an object.
Protected method RemoveAccessRuleSpecific(ObjectAccessRule) Removes all access rules that exactly match the specified access rule from the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method RemoveAudit Removes all audit rules that have the specified IdentityReference object from the SACL of an object.
Public method RemoveAuditRule(ActiveDirectoryAuditRule) Removes all audit rules that contain the same security identifier and access mask as the specified audit rule from the System Access Control List (SACL) of an object.
Protected method RemoveAuditRule(ObjectAuditRule) Removes audit rules that contain the same security identifier and access mask as the specified audit rule from the System Access Control List (SACL) associated with this CommonObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Protected method RemoveAuditRuleAll Removes all audit rules that have the same security identifier as the specified audit rule from the System Access Control List (SACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method RemoveAuditRuleSpecific(ActiveDirectoryAuditRule) Removes all audit rules that exactly match the specified audit rule from the SACL of an object.
Protected method RemoveAuditRuleSpecific(ObjectAuditRule) Removes all audit rules that exactly match the specified audit rule from the System Access Control List (SACL) associated with this DirectoryObjectSecurity object. (Inherited from DirectoryObjectSecurity.)
Public method ResetAccessRule(ActiveDirectoryAccessRule) Searches an object's DACL for all access rules that contain a security identifier (SID) that matches the SID specified in the rule object, and replaces all of those access rules with the access rules that are contained in the rule object.
Protected method ResetAccessRule(ObjectAccessRule) Removes all access rules in the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object and then adds the specified access rule. (Inherited from DirectoryObjectSecurity.)
Public method SetAccessRule(ActiveDirectoryAccessRule) Searches an object's DACL for all access rules that contain a security identifier (SID) that matches the SID specified in the rule object, and an access control type (Allow or Deny) that matches the type specified in the rule object, and replaces all of those access rules with the access rules that are contained in the rule object.
Protected method SetAccessRule(ObjectAccessRule) Removes all access rules that contain the same security identifier and qualifier as the specified access rule in the Discretionary Access Control List (DACL) associated with this DirectoryObjectSecurity object and then adds the specified access rule. (Inherited from DirectoryObjectSecurity.)
Public method SetAccessRuleProtection Sets or removes protection of the access rules associated with this ObjectSecurity object. Protected access rules cannot be modified by parent objects through inheritance. (Inherited from ObjectSecurity.)
Public method SetAuditRule(ActiveDirectoryAuditRule) Replaces all audit rules that contain the same security identifier as the specified audit rule in the SACL of an object with the specified audit rule.
Protected method SetAuditRule(ObjectAuditRule) Removes all audit rules that contain the same security identifier and qualifier as the specified audit rule in the System Access Control List (SACL) associated with this DirectoryObjectSecurity object and then adds the specified audit rule. (Inherited from DirectoryObjectSecurity.)
Public method SetAuditRuleProtection Sets or removes protection of the audit rules associated with this ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance. (Inherited from ObjectSecurity.)
Public method SetGroup Sets the primary group for the security descriptor associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public method SetOwner Sets the owner for the security descriptor associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public method SetSecurityDescriptorBinaryForm(Byte[]) Sets the security descriptor for this ObjectSecurity object from the specified array of byte values. (Inherited from ObjectSecurity.)
Public method SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections) Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values. (Inherited from ObjectSecurity.)
Public method SetSecurityDescriptorSddlForm(String) Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string. (Inherited from ObjectSecurity.)
Public method SetSecurityDescriptorSddlForm(String, AccessControlSections) Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string. (Inherited from ObjectSecurity.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method WriteLock Locks this ObjectSecurity object for write access. (Inherited from ObjectSecurity.)
Protected method WriteUnlock Unlocks this ObjectSecurity object for write access. (Inherited from ObjectSecurity.)
Top
Show:
© 2014 Microsoft