This documentation is archived and is not being maintained.
ObjectSecurity Class
Visual Studio 2010
Provides the ability to control access to objects without direct manipulation of Access Control Lists (ACLs). This class is the abstract base class for the CommonObjectSecurity and DirectoryObjectSecurity classes.
System::Object
System.Security.AccessControl::ObjectSecurity
System.Security.AccessControl::CommonObjectSecurity
System.Security.AccessControl::DirectoryObjectSecurity
System.Security.AccessControl::ObjectSecurity
System.Security.AccessControl::CommonObjectSecurity
System.Security.AccessControl::DirectoryObjectSecurity
Assembly: mscorlib (in mscorlib.dll)
The ObjectSecurity type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AccessRightType | Gets the Type of the securable object associated with this ObjectSecurity object. |
![]() | AccessRulesModified | Gets or sets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object have been modified. |
![]() | AccessRuleType | Gets the Type of the object associated with the access rules of this ObjectSecurity object. The Type object must be an object that can be cast as a SecurityIdentifier object. |
![]() | AreAccessRulesCanonical | Gets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object are in canonical order. |
![]() | AreAccessRulesProtected | Gets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this ObjectSecurity object is protected. |
![]() | AreAuditRulesCanonical | Gets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object are in canonical order. |
![]() | AreAuditRulesProtected | Gets a Boolean value that specifies whether the System Access Control List (SACL) associated with this ObjectSecurity object is protected. |
![]() | AuditRulesModified | Gets or sets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object have been modified. |
![]() | AuditRuleType | Gets the Type object associated with the audit rules of this ObjectSecurity object. The Type object must be an object that can be cast as a SecurityIdentifier object. |
![]() | GroupModified | Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified. |
![]() | IsContainer | Gets a Boolean value that specifies whether this ObjectSecurity object is a container object. |
![]() | IsDS | Gets a Boolean value that specifies whether this ObjectSecurity object is a directory object. |
![]() | OwnerModified | Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified. |
| Name | Description | |
|---|---|---|
![]() | AccessRuleFactory | Initializes a new instance of the AccessRule class with the specified values. |
![]() | AuditRuleFactory | Initializes a new instance of the AuditRule class with the specified values. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetGroup | Gets the primary group associated with the specified owner. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetOwner | Gets the owner associated with the specified primary group. |
![]() | GetSecurityDescriptorBinaryForm | Returns an array of byte values that represents the security descriptor information for this ObjectSecurity object. |
![]() | GetSecurityDescriptorSddlForm | Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | 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. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ModifyAccess | Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object. |
![]() | ModifyAccessRule | Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object. |
![]() | ModifyAudit | Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object. |
![]() | ModifyAuditRule | Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object. |
![]() | 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. |
![]() | 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. |
![]() | 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. |
![]() | PurgeAccessRules | Removes all access rules associated with the specified IdentityReference. |
![]() | PurgeAuditRules | Removes all audit rules associated with the specified IdentityReference. |
![]() | ReadLock | Locks this ObjectSecurity object for read access. |
![]() | ReadUnlock | Unlocks this ObjectSecurity object for read access. |
![]() | 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. |
![]() | 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. |
![]() | SetGroup | Sets the primary group for the security descriptor associated with this ObjectSecurity object. |
![]() | SetOwner | Sets the owner for the security descriptor associated with this ObjectSecurity object. |
![]() | SetSecurityDescriptorBinaryForm(array<Byte>) | Sets the security descriptor for this ObjectSecurity object from the specified array of byte values. |
![]() | SetSecurityDescriptorBinaryForm(array<Byte>, AccessControlSections) | Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values. |
![]() | SetSecurityDescriptorSddlForm(String) | Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string. |
![]() | SetSecurityDescriptorSddlForm(String, AccessControlSections) | Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteLock | Locks this ObjectSecurity object for write access. |
![]() | WriteUnlock | Unlocks this ObjectSecurity object for write access. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
