System.Security.AccessControl.ObjectSecurity Members

The members of System.Security.AccessControl.ObjectSecurity are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Security.AccessControl.ObjectSecurity class.

Public Properties

[read-only]
abstract
AccessRightTypeType.

Gets the Type of the securable object associated with this System.Security.AccessControl.ObjectSecurity object.

[read-only]
abstract
AccessRuleTypeType.

Gets the Type of the object associated with the access rules of this System.Security.AccessControl.ObjectSecurity object. The Type object must be an object that can be cast as a System.Security.Principal.SecurityIdentifier object.

[read-only]
AreAccessRulesCanonicalbool.

Gets a Boolean value that specifies whether the access rules associated with this System.Security.AccessControl.ObjectSecurity object are in canonical order.

[read-only]
AreAccessRulesProtectedbool.

Gets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this System.Security.AccessControl.ObjectSecurity object is protected.

[read-only]
AreAuditRulesCanonicalbool.

Gets a Boolean value that specifies whether the audit rules associated with this System.Security.AccessControl.ObjectSecurity object are in canonical order.

[read-only]
AreAuditRulesProtectedbool.

Gets a Boolean value that specifies whether the System Access Control List (SACL) associated with this System.Security.AccessControl.ObjectSecurity object is protected.

[read-only]
abstract
AuditRuleTypeType.

Gets the Type object associated with the audit rules of this System.Security.AccessControl.ObjectSecurity object. The Type object must be an object that can be cast as a System.Security.Principal.SecurityIdentifier object.

Protected Properties

AccessRulesModifiedbool.

Gets or sets a Boolean value that specifies whether the access rules associated with this System.Security.AccessControl.ObjectSecurity object have been modified.

AuditRulesModifiedbool.

Gets or sets a Boolean value that specifies whether the audit rules associated with this System.Security.AccessControl.ObjectSecurity object have been modified.

GroupModifiedbool.

Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified.

[read-only]
IsContainerbool.

Gets a Boolean value that specifies whether this System.Security.AccessControl.ObjectSecurity object is a container object.

[read-only]
IsDSbool.

Gets a Boolean value that specifies whether this System.Security.AccessControl.ObjectSecurity object is a directory object.

OwnerModifiedbool.

Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified.

Public Methods

abstract
AccessRuleFactory(System.Security.Principal.IdentityReference, int, bool, InheritanceFlags, PropagationFlags, AccessControlType) : AccessRule

Initializes a new instance of the System.Security.AccessControl.AccessRule class with the specified values.

abstract
AuditRuleFactory(System.Security.Principal.IdentityReference, int, bool, InheritanceFlags, PropagationFlags, AuditFlags) : AuditRule

Initializes a new instance of the System.Security.AccessControl.AuditRule class with the specified values.

GetGroup(Type) : System.Security.Principal.IdentityReference

Gets the primary group associated with the specified owner.

GetOwner(Type) : System.Security.Principal.IdentityReference

Gets the owner associated with the specified primary group.

GetSecurityDescriptorBinaryForm() : byte[]

Returns an array of byte values that represents the security descriptor information for this System.Security.AccessControl.ObjectSecurity object.

GetSecurityDescriptorSddlForm(AccessControlSections) : string

Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this System.Security.AccessControl.ObjectSecurity object.

static
IsSddlConversionSupported() : bool

Returns a Boolean value that specifies whether the security descriptor associated with this System.Security.AccessControl.ObjectSecurity object can be converted to the Security Descriptor Definition Language (SDDL) format.

ModifyAccessRule(AccessControlModification, AccessRule, out bool) : bool
Documentation for this section has not yet been entered.
ModifyAuditRule(AccessControlModification, AuditRule, out bool) : bool
Documentation for this section has not yet been entered.
PurgeAccessRules(System.Security.Principal.IdentityReference)

Removes all access rules associated with the specified System.Security.Principal.IdentityReference.

PurgeAuditRules(System.Security.Principal.IdentityReference)

Removes all audit rules associated with the specified System.Security.Principal.IdentityReference.

SetAccessRuleProtection(bool, bool)

Sets or removes protection of the access rules associated with this System.Security.AccessControl.ObjectSecurity object. Protected access rules cannot be modified by parent objects through inheritance.

SetAuditRuleProtection(bool, bool)

Sets or removes protection of the audit rules associated with this System.Security.AccessControl.ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance.

SetGroup(System.Security.Principal.IdentityReference)

Sets the primary group for the security descriptor associated with this System.Security.AccessControl.ObjectSecurity object.

SetOwner(System.Security.Principal.IdentityReference)

Sets the owner for the security descriptor associated with this System.Security.AccessControl.ObjectSecurity object.

SetSecurityDescriptorBinaryForm(byte[])

Sets the security descriptor for this System.Security.AccessControl.ObjectSecurity object from the specified array of byte values.

SetSecurityDescriptorBinaryForm(byte[], AccessControlSections)

Sets the specified sections of the security descriptor for this System.Security.AccessControl.ObjectSecurity object from the specified array of byte values.

SetSecurityDescriptorSddlForm(string)

Sets the security descriptor for this System.Security.AccessControl.ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.

SetSecurityDescriptorSddlForm(string, AccessControlSections)

Sets the specified sections of the security descriptor for this System.Security.AccessControl.ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.

Protected Methods

abstract
ModifyAccess(AccessControlModification, AccessRule, out bool) : bool
Documentation for this section has not yet been entered.
abstract
ModifyAudit(AccessControlModification, AuditRule, out bool) : bool
Documentation for this section has not yet been entered.
Persist(System.Runtime.InteropServices.SafeHandle, AccessControlSections)

Saves the specified sections of the security descriptor associated with this System.Security.AccessControl.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 System.Security.AccessControl.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(bool, string, AccessControlSections)

Saves the specified sections of the security descriptor associated with this System.Security.AccessControl.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.

ReadLock()

Locks this System.Security.AccessControl.ObjectSecurity object for read access.

ReadUnlock()

Unlocks this System.Security.AccessControl.ObjectSecurity object for read access.

WriteLock()

Locks this System.Security.AccessControl.ObjectSecurity object for write access.

WriteUnlock()

Unlocks this System.Security.AccessControl.ObjectSecurity object for write access.