Redigeeri

Jagamisviis:


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
GenericAcl
Derived
Implements

Constructors

GenericAcl()

Initializes a new instance of the GenericAcl class.

Fields

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

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

The maximum allowed binary length of a GenericAcl object.

Properties

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

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

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]

Gets or sets the GenericAce at the specified index.

Revision

Gets the revision level of the GenericAcl.

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)

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

Equals(Object)

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

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

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

GetEnumerator()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

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

IEnumerable.GetEnumerator()

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

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to