Bewerken

Share via


RawAcl Class

Definition

Represents an Access Control List (ACL).

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

Remarks

The RawAcl class allows full manipulation of Access Control Entries (ACEs). It does not enforce ordering rules for ACEs and does not provide validation logic. Any ACE can be inserted, modified, or removed at any location in the ACL.

Constructors

RawAcl(Byte, Int32)

Initializes a new instance of the RawAcl class with the specified revision level.

RawAcl(Byte[], Int32)

Initializes a new instance of the RawAcl class from the specified binary form.

Properties

BinaryLength

Gets the length, in bytes, of the binary representation of the current RawAcl 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 RawAcl object.

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]

Gets or sets the Access Control Entry (ACE) at the specified index.

Revision

Gets the revision level of the RawAcl.

SyncRoot

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

(Inherited from GenericAcl)

Methods

CopyTo(GenericAce[], Int32)

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

(Inherited from GenericAcl)
Equals(Object)

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

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

Marshals the contents of the RawAcl 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).

(Inherited from GenericAcl)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InsertAce(Int32, GenericAce)

Inserts the specified Access Control Entry (ACE) at the specified index.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveAce(Int32)

Removes the Access Control Entry (ACE) at the specified location.

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.

(Inherited from GenericAcl)
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)

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