This topic has not yet been rated - Rate this topic

NativeObjectSecurity Class

Provides the ability to control access to native objects without direct manipulation of Access Control Lists (ACLs). Native object types are defined by the ResourceType enumeration.

System.Object
  System.Security.AccessControl.ObjectSecurity
    System.Security.AccessControl.CommonObjectSecurity
      System.Security.AccessControl.NativeObjectSecurity
        More...

Namespace:  System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)
public abstract class NativeObjectSecurity : CommonObjectSecurity

The NativeObjectSecurity type exposes the following members.

  Name Description
Protected method NativeObjectSecurity(Boolean, ResourceType) Initializes a new instance of the NativeObjectSecurity class with the specified values.
Protected method NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections) Initializes a new instance of the NativeObjectSecurity class with the specified values. 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 NativeObjectSecurity(Boolean, ResourceType, NativeObjectSecurity.ExceptionFromErrorCode, Object) Initializes a new instance of the NativeObjectSecurity class by using the specified values.
Protected method NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections) Initializes a new instance of the NativeObjectSecurity class with the specified values. 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 NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object) Initializes a new instance of the NativeObjectSecurity class with the specified values. 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 NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object) Initializes a new instance of the NativeObjectSecurity class with the specified values. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical. For more information, see Remarks.
Top
  Name Description
Public property AccessRightType Gets the Type of the securable object associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Protected property AccessRulesModified Gets or sets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object have been modified. (Inherited from ObjectSecurity.)
Public property 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. (Inherited from ObjectSecurity.)
Public property AreAccessRulesCanonical Gets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object are in canonical order. (Inherited from ObjectSecurity.)
Public property AreAccessRulesProtected Gets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this ObjectSecurity object is protected. (Inherited from ObjectSecurity.)
Public property AreAuditRulesCanonical Gets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object are in canonical order. (Inherited from ObjectSecurity.)
Public property AreAuditRulesProtected Gets a Boolean value that specifies whether the System Access Control List (SACL) associated with this ObjectSecurity object is protected. (Inherited from ObjectSecurity.)
Protected property AuditRulesModified Gets or sets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object have been modified. (Inherited from ObjectSecurity.)
Public property 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. (Inherited from ObjectSecurity.)
Protected property GroupModified Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified. (Inherited from ObjectSecurity.)
Protected property IsContainer Gets a Boolean value that specifies whether this ObjectSecurity object is a container object. (Inherited from ObjectSecurity.)
Protected property IsDS Gets a Boolean value that specifies whether this ObjectSecurity object is a directory object. (Inherited from ObjectSecurity.)
Protected property OwnerModified Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified. (Inherited from ObjectSecurity.)
Top
  Name Description
Public method AccessRuleFactory Initializes a new instance of the AccessRule class with the specified values. (Inherited from ObjectSecurity.)
Protected method AddAccessRule Adds the specified access rule to the Discretionary Access Control List (DACL) associated with this CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Protected method AddAuditRule Adds the specified audit rule to the System Access Control List (SACL) associated with this CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Public method AuditRuleFactory Initializes a new instance of the AuditRule class with the specified values. (Inherited from ObjectSecurity.)
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 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 a hash function for a particular type. (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 CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Public method ModifyAccessRule Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Protected method ModifyAudit Applies the specified modification to the System Access Control List (SACL) associated with this CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Public method ModifyAuditRule Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Protected method Persist(SafeHandle, AccessControlSections) Saves the specified sections of the security descriptor associated with this NativeObjectSecurity 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. (Overrides ObjectSecurity.Persist(SafeHandle, AccessControlSections).)
Protected method Persist(String, AccessControlSections) Saves the specified sections of the security descriptor associated with this NativeObjectSecurity 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. (Overrides ObjectSecurity.Persist(String, AccessControlSections).)
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.)
Protected method Persist(SafeHandle, AccessControlSections, Object) Saves the specified sections of the security descriptor associated with this NativeObjectSecurity 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, Object) Saves the specified sections of the security descriptor associated with this NativeObjectSecurity 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. (Inherited from ObjectSecurity.)
Public method PurgeAuditRules Removes all audit rules associated with the specified IdentityReference. (Inherited from ObjectSecurity.)
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.)
Protected method RemoveAccessRule 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 CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
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 CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Protected method RemoveAccessRuleSpecific Removes all access rules that exactly match the specified access rule from the Discretionary Access Control List (DACL) associated with this CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Protected method RemoveAuditRule 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 CommonObjectSecurity.)
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 CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Protected method RemoveAuditRuleSpecific Removes all audit rules that exactly match the specified audit rule from the System Access Control List (SACL) associated with this CommonObjectSecurity object. (Inherited from CommonObjectSecurity.)
Protected method ResetAccessRule Removes all access rules in the Discretionary Access Control List (DACL) associated with this CommonObjectSecurity object and then adds the specified access rule. (Inherited from CommonObjectSecurity.)
Protected method SetAccessRule 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 CommonObjectSecurity object and then adds the specified access rule. (Inherited from CommonObjectSecurity.)
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.)
Protected method SetAuditRule 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 CommonObjectSecurity object and then adds the specified audit rule. (Inherited from CommonObjectSecurity.)
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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ