Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ObjectSecurity Methods

ObjectSecurity Methods

The ObjectSecurity type exposes the following members.

  NameDescription
Public method AccessRuleFactory Initializes a new instance of the AccessRule class with the specified values.
Public method AuditRuleFactory Initializes a new instance of the AuditRule class with the specified values.
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 GetGroup Gets the primary group associated with the specified owner.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetOwner Gets the owner associated with the specified primary group.
Public method GetSecurityDescriptorBinaryForm Returns an array of byte values that represents the security descriptor information for this ObjectSecurity object.
Public method GetSecurityDescriptorSddlForm Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member IsSddlConversionSupported Returns a Boolean value that specifies whether the security descriptor associated with this ObjectSecurity object can be converted to the Security Descriptor Definition Language (SDDL) format.
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 ObjectSecurity object.
Public method ModifyAccessRule Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.
Protected method ModifyAudit Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.
Public method ModifyAuditRule Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.
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.
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.
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.
Public method PurgeAccessRules Removes all access rules associated with the specified IdentityReference.
Public method PurgeAuditRules Removes all audit rules associated with the specified IdentityReference.
Protected method ReadLock Locks this ObjectSecurity object for read access.
Protected method ReadUnlock Unlocks this ObjectSecurity object for read access.
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.
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.
Public method SetGroup Sets the primary group for the security descriptor associated with this ObjectSecurity object.
Public method SetOwner Sets the owner for the security descriptor associated with this ObjectSecurity object.
Public method SetSecurityDescriptorBinaryForm(Byte[]) Sets the security descriptor for this ObjectSecurity object from the specified array of byte values.
Public method SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections) Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values.
Public method SetSecurityDescriptorSddlForm(String) Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.
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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method WriteLock Locks this ObjectSecurity object for write access.
Protected method WriteUnlock Unlocks this ObjectSecurity object for write access.
Top

Community Additions

ADD
Show:
© 2015 Microsoft