GenericAcl GenericAcl GenericAcl GenericAcl Class

Definition

Represents an access control list (ACL) and is the base class for the CommonAcl, DiscretionaryAcl, RawAcl, and SystemAcl classes.

public ref class GenericAcl abstract : System::Collections::ICollection
public abstract class GenericAcl : System.Collections.ICollection
type GenericAcl = class
    interface ICollection
    interface IEnumerable
Public MustInherit Class GenericAcl
Implements ICollection
Inheritance
GenericAclGenericAclGenericAclGenericAcl
Derived
Implements

Constructors

GenericAcl() GenericAcl() GenericAcl() GenericAcl()

Initializes a new instance of the GenericAcl class.

Fields

AclRevision AclRevision AclRevision AclRevision

The revision level of the current GenericAcl. This value is returned by the Revision property for Access Control Lists (ACLs) that are not associated with Directory Services objects.

AclRevisionDS AclRevisionDS AclRevisionDS AclRevisionDS

The revision level of the current GenericAcl. This value is returned by the Revision property for Access Control Lists (ACLs) that are associated with Directory Services objects.

MaxBinaryLength MaxBinaryLength MaxBinaryLength MaxBinaryLength

The maximum allowed binary length of a GenericAcl object.

Properties

BinaryLength BinaryLength BinaryLength BinaryLength

Gets the length, in bytes, of the binary representation of the current GenericAcl object. This length should be used before marshaling the ACL into a binary array with the GetBinaryForm(Byte[], Int32) method.

Count Count Count Count

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

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.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets the GenericAce at the specified index.

Revision Revision Revision Revision

Gets the revision level of the GenericAcl.

SyncRoot SyncRoot SyncRoot SyncRoot

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

Methods

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

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

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 GenericAcl object into the specified byte array beginning at the specified offset.

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).

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)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

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.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

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