Export (0) Print
Expand All

ObjectSecurity Class

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.

Namespace:  System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)

public abstract class ObjectSecurity

The ObjectSecurity type exposes the following members.

  NameDescription
Protected methodObjectSecurityInitializes a new instance of the ObjectSecurity class.
Top

  NameDescription
Public propertyAccessRightTypeGets the Type of the securable object associated with this ObjectSecurity object.
Protected propertyAccessRulesModifiedGets or sets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object have been modified.
Public propertyAccessRuleTypeGets 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.
Public propertyAreAccessRulesCanonicalGets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object are in canonical order.
Public propertyAreAccessRulesProtectedGets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this ObjectSecurity object is protected.
Public propertyAreAuditRulesCanonicalGets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object are in canonical order.
Public propertyAreAuditRulesProtectedGets a Boolean value that specifies whether the System Access Control List (SACL) associated with this ObjectSecurity object is protected.
Protected propertyAuditRulesModifiedGets or sets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object have been modified.
Public propertyAuditRuleTypeGets 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.
Protected propertyGroupModifiedGets or sets a Boolean value that specifies whether the group associated with the securable object has been modified.
Protected propertyIsContainerGets a Boolean value that specifies whether this ObjectSecurity object is a container object.
Protected propertyIsDSGets a Boolean value that specifies whether this ObjectSecurity object is a directory object.
Protected propertyOwnerModifiedGets or sets a Boolean value that specifies whether the owner of the securable object has been modified.
Top

  NameDescription
Public methodAccessRuleFactoryInitializes a new instance of the AccessRule class with the specified values.
Public methodAuditRuleFactoryInitializes a new instance of the AuditRule class with the specified values.
Public methodEquals(Object)Determines 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 methodGetGroupGets the primary group associated with the specified owner.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetOwnerGets the owner associated with the specified primary group.
Public methodGetSecurityDescriptorBinaryFormReturns an array of byte values that represents the security descriptor information for this ObjectSecurity object.
Public methodGetSecurityDescriptorSddlFormReturns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsSddlConversionSupportedReturns 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 methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodModifyAccessApplies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.
Public methodModifyAccessRuleApplies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.
Protected methodModifyAuditApplies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.
Public methodModifyAuditRuleApplies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.
Protected methodPersist(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 methodPersist(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 methodPersist(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 methodPurgeAccessRulesRemoves all access rules associated with the specified IdentityReference.
Public methodPurgeAuditRulesRemoves all audit rules associated with the specified IdentityReference.
Protected methodReadLockLocks this ObjectSecurity object for read access.
Protected methodReadUnlockUnlocks this ObjectSecurity object for read access.
Public methodSetAccessRuleProtectionSets or removes protection of the access rules associated with this ObjectSecurity object. Protected access rules cannot be modified by parent objects through inheritance.
Public methodSetAuditRuleProtectionSets or removes protection of the audit rules associated with this ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance.
Public methodSetGroupSets the primary group for the security descriptor associated with this ObjectSecurity object.
Public methodSetOwnerSets the owner for the security descriptor associated with this ObjectSecurity object.
Public methodSetSecurityDescriptorBinaryForm(Byte[])Sets the security descriptor for this ObjectSecurity object from the specified array of byte values.
Public methodSetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values.
Public methodSetSecurityDescriptorSddlForm(String)Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.
Public methodSetSecurityDescriptorSddlForm(String, AccessControlSections)Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodWriteLockLocks this ObjectSecurity object for write access.
Protected methodWriteUnlockUnlocks this ObjectSecurity object for write access.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft