DiscretionaryAcl DiscretionaryAcl DiscretionaryAcl DiscretionaryAcl Class

Definition

Represents a Discretionary Access Control List (DACL).

public ref class DiscretionaryAcl sealed : System::Security::AccessControl::CommonAcl
public sealed class DiscretionaryAcl : System.Security.AccessControl.CommonAcl
type DiscretionaryAcl = class
    inherit CommonAcl
Public NotInheritable Class DiscretionaryAcl
Inherits CommonAcl
Inheritance

Constructors

DiscretionaryAcl(Boolean, Boolean, Byte, Int32) DiscretionaryAcl(Boolean, Boolean, Byte, Int32) DiscretionaryAcl(Boolean, Boolean, Byte, Int32) DiscretionaryAcl(Boolean, Boolean, Byte, Int32)

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

DiscretionaryAcl(Boolean, Boolean, Int32) DiscretionaryAcl(Boolean, Boolean, Int32) DiscretionaryAcl(Boolean, Boolean, Int32) DiscretionaryAcl(Boolean, Boolean, Int32)

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

DiscretionaryAcl(Boolean, Boolean, RawAcl) DiscretionaryAcl(Boolean, Boolean, RawAcl) DiscretionaryAcl(Boolean, Boolean, RawAcl) DiscretionaryAcl(Boolean, Boolean, RawAcl)

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

Methods

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

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

AddAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) AddAccess(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.

AddAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) AddAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) AddAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) AddAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule)

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

CopyTo(GenericAce[], Int32) CopyTo(GenericAce[], Int32) CopyTo(GenericAce[], Int32) CopyTo(GenericAce[], Int32)

Copies each GenericAce of the current GenericAcl into the specified array.

(Inherited from GenericAcl)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBinaryForm(Byte[], Int32) GetBinaryForm(Byte[], Int32) GetBinaryForm(Byte[], Int32) GetBinaryForm(Byte[], Int32)

Marshals the contents of the CommonAcl object into the specified byte array beginning at the specified offset.

(Inherited from CommonAcl)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

(Inherited from GenericAcl)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Purge(SecurityIdentifier) Purge(SecurityIdentifier) Purge(SecurityIdentifier) Purge(SecurityIdentifier)

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

(Inherited from CommonAcl)
RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

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

RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) RemoveAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) RemoveAccess(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.

RemoveAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) RemoveAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) RemoveAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) RemoveAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule)

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

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

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

RemoveAccessSpecific(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) RemoveAccessSpecific(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) RemoveAccessSpecific(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags, ObjectAceFlags, Guid, Guid) RemoveAccessSpecific(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.

RemoveAccessSpecific(AccessControlType, SecurityIdentifier, ObjectAccessRule) RemoveAccessSpecific(AccessControlType, SecurityIdentifier, ObjectAccessRule) RemoveAccessSpecific(AccessControlType, SecurityIdentifier, ObjectAccessRule) RemoveAccessSpecific(AccessControlType, SecurityIdentifier, ObjectAccessRule)

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

RemoveInheritedAces() RemoveInheritedAces() RemoveInheritedAces() RemoveInheritedAces()

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

(Inherited from CommonAcl)
SetAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags) SetAccess(AccessControlType, SecurityIdentifier, Int32, InheritanceFlags, PropagationFlags)

Sets the specified access control for the specified SecurityIdentifier object.

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

Sets the specified access control for the specified SecurityIdentifier object.

SetAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) SetAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) SetAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule) SetAccess(AccessControlType, SecurityIdentifier, ObjectAccessRule)

Sets the specified access control for the specified SecurityIdentifier object.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Properties

BinaryLength BinaryLength BinaryLength BinaryLength

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(Byte[], Int32) method.

(Inherited from CommonAcl)
Count Count Count Count

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

(Inherited from CommonAcl)
IsCanonical IsCanonical IsCanonical IsCanonical

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

(Inherited from CommonAcl)
IsContainer IsContainer IsContainer IsContainer

Sets whether the CommonAcl object is a container.

(Inherited from CommonAcl)
IsDS IsDS IsDS IsDS

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

(Inherited from CommonAcl)
IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets the CommonAce at the specified index.

(Inherited from CommonAcl)
Revision Revision Revision Revision

Gets the revision level of the CommonAcl.

(Inherited from CommonAcl)
SyncRoot SyncRoot SyncRoot SyncRoot

This property always returns null. It is implemented only because it is required for the implementation of the ICollection interface.

(Inherited from GenericAcl)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies each GenericAce of the current GenericAcl into the specified array.

(Inherited from GenericAcl)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns a new instance of the AceEnumerator class cast as an instance of the IEnumerator interface.

(Inherited from GenericAcl)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to