Export (0) Print
Expand All

DirectorySecurity Methods

The DirectorySecurity type exposes the following members.

  Name Description
Public method AccessRuleFactory Initializes a new instance of the FileSystemAccessRule class that represents a new access control rule for the specified user, with the specified access rights, access control, and flags. (Inherited from FileSystemSecurity.)
Public method AddAccessRule(FileSystemAccessRule) Adds the specified access control list (ACL) permission to the current file or directory. (Inherited from FileSystemSecurity.)
Public method AddAuditRule(FileSystemAuditRule) Adds the specified audit rule to the current file or directory. (Inherited from FileSystemSecurity.)
Public method AuditRuleFactory Initializes a new instance of the FileSystemAuditRule class representing the specified audit rule for the specified user. (Inherited from FileSystemSecurity.)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetAccessRules Gets a collection of the access rules associated with the specified security identifier. (Inherited from CommonObjectSecurity.)
Public method GetAuditRules Gets a collection of the audit rules associated with the specified security identifier. (Inherited from CommonObjectSecurity.)
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.)
Public method ModifyAccessRule Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public method ModifyAuditRule Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public method PurgeAccessRules Removes all access rules associated with the specified IdentityReference. (Inherited from ObjectSecurity.)
Public method PurgeAuditRules Removes all audit rules associated with the specified IdentityReference. (Inherited from ObjectSecurity.)
Public method RemoveAccessRule(FileSystemAccessRule) Removes all matching allow or deny access control list (ACL) permissions from the current file or directory. (Inherited from FileSystemSecurity.)
Public method RemoveAccessRuleAll(FileSystemAccessRule) Removes all access control list (ACL) permissions for the specified user from the current file or directory. (Inherited from FileSystemSecurity.)
Public method RemoveAccessRuleSpecific(FileSystemAccessRule) Removes a single matching allow or deny access control list (ACL) permission from the current file or directory. (Inherited from FileSystemSecurity.)
Public method RemoveAuditRule(FileSystemAuditRule) Removes all matching allow or deny audit rules from the current file or directory. (Inherited from FileSystemSecurity.)
Public method RemoveAuditRuleAll(FileSystemAuditRule) Removes all audit rules for the specified user from the current file or directory. (Inherited from FileSystemSecurity.)
Public method RemoveAuditRuleSpecific(FileSystemAuditRule) Removes a single matching allow or deny audit rule from the current file or directory. (Inherited from FileSystemSecurity.)
Public method ResetAccessRule(FileSystemAccessRule) Adds the specified access control list (ACL) permission to the current file or directory and removes all matching ACL permissions. (Inherited from FileSystemSecurity.)
Public method SetAccessRule(FileSystemAccessRule) Sets the specified access control list (ACL) permission for the current file or directory. (Inherited from FileSystemSecurity.)
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(FileSystemAuditRule) Sets the specified audit rule for the current file or directory. (Inherited from FileSystemSecurity.)
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.)
Top
Show:
© 2014 Microsoft