DiscretionaryAcl Class

 

Represents a Discretionary Access Control List (DACL).

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

System.Object
  System.Security.AccessControl.GenericAcl
    System.Security.AccessControl.CommonAcl
      System.Security.AccessControl.DiscretionaryAcl

public sealed class DiscretionaryAcl : CommonAcl

NameDescription
System_CAPS_pubmethodDiscretionaryAcl(Boolean, Boolean, Byte, Int32)

Initializes a new instance of the DiscretionaryAcl class with the specified values.

System_CAPS_pubmethodDiscretionaryAcl(Boolean, Boolean, Int32)

Initializes a new instance of the DiscretionaryAcl class with the specified values.

System_CAPS_pubmethodDiscretionaryAcl(Boolean, Boolean, RawAcl)

Initializes a new instance of the DiscretionaryAcl class with the specified values from the specified RawAcl object.

NameDescription
System_CAPS_pubpropertyBinaryLength

Gets the length, in bytes, of the binary representation of the current CommonAcl object. This length should be used before marshaling the access control list (ACL) into a binary array by using the GetBinaryForm method.(Inherited from CommonAcl.)

System_CAPS_pubpropertyCount

Gets the number of access control entries (ACEs) in the current CommonAcl object.(Inherited from CommonAcl.)

System_CAPS_pubpropertyIsCanonical

Gets a Boolean value that specifies whether the access control entries (ACEs) in the current CommonAcl object are in canonical order.(Inherited from CommonAcl.)

System_CAPS_pubpropertyIsContainer

Sets whether the CommonAcl object is a container. (Inherited from CommonAcl.)

System_CAPS_pubpropertyIsDS

Sets whether the current CommonAcl object is a directory object access control list (ACL).(Inherited from CommonAcl.)

System_CAPS_pubpropertyIsSynchronized

This property is always set to false. It is implemented only because it is required for the implementation of the ICollection interface.(Inherited from GenericAcl.)

System_CAPS_pubpropertyItem[Int32]

Gets or sets the CommonAce at the specified index.(Inherited from CommonAcl.)

System_CAPS_pubpropertyRevision

Gets the revision level of the CommonAcl.(Inherited from CommonAcl.)

System_CAPS_pubpropertySyncRoot

This property always returns null. It is implemented only because it is required for the implementation of the ICollection interface.(Inherited from GenericAcl.)

NameDescription
System_CAPS_pubmethodAddAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Adds an Access Control Entry (ACE) with the specified settings to the current DiscretionaryAcl object.

System_CAPS_pubmethodAddAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

Adds an Access Control Entry (ACE) with the specified settings to the current DiscretionaryAcl object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type for the new ACE.

System_CAPS_pubmethodAddAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule)

Adds an Access Control Entry (ACE) with the specified settings to the current DiscretionaryAcl object.

System_CAPS_pubmethodCopyTo(GenericAce[], Int32)

Copies each GenericAce of the current GenericAcl into the specified array.(Inherited from GenericAcl.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetBinaryForm(Byte[], Int32)

Marshals the contents of the CommonAcl object into the specified byte array beginning at the specified offset.(Inherited from CommonAcl.)

System_CAPS_pubmethodGetEnumerator()

Retrieves an object that you can use to iterate through the access control entries (ACEs) in an access control list (ACL).(Inherited from GenericAcl.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodPurge(SecurityIdentifier)

Removes all access control entries (ACEs) contained by this CommonAcl object that are associated with the specified SecurityIdentifier object.(Inherited from CommonAcl.)

System_CAPS_pubmethodRemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Removes the specified access control rule from the current DiscretionaryAcl object.

System_CAPS_pubmethodRemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

Removes the specified access control rule from the current DiscretionaryAcl object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type.

System_CAPS_pubmethodRemoveAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule)

Removes the specified access control rule from the current DiscretionaryAcl object.

System_CAPS_pubmethodRemoveAccessSpecific(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Removes the specified Access Control Entry (ACE) from the current DiscretionaryAcl object.

System_CAPS_pubmethodRemoveAccessSpecific(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

Removes the specified Access Control Entry (ACE) from the current DiscretionaryAcl object. Use this method for directory object Access Control Lists (ACLs) when specifying the object type or the inherited object type for the ACE to be removed.

System_CAPS_pubmethodRemoveAccessSpecific(AccessControlType, SecurityIdentifier, ObjectAccessRule)

Removes the specified Access Control Entry (ACE) from the current DiscretionaryAcl object.

System_CAPS_pubmethodRemoveInheritedAces()

Removes all inherited access control entries (ACEs) from this CommonAcl object.(Inherited from CommonAcl.)

System_CAPS_pubmethodSetAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Sets the specified access control for the specified SecurityIdentifier object.

System_CAPS_pubmethodSetAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid)

Sets the specified access control for the specified SecurityIdentifier object.

System_CAPS_pubmethodSetAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule)

Sets the specified access control for the specified SecurityIdentifier object.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

Copies each GenericAce of the current GenericAcl into the specified array.(Inherited from GenericAcl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns a new instance of the AceEnumerator class cast as an instance of the IEnumerator interface.(Inherited from GenericAcl.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

.NET Framework
Available since 2.0

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

Return to top
Show: