RawAcl RawAcl RawAcl 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) RawAcl(Byte, Int32) RawAcl(Byte, Int32) RawAcl(Byte, Int32)

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

RawAcl(Byte[], Int32) RawAcl(Byte[], Int32) RawAcl(Byte[], Int32) RawAcl(Byte[], Int32)

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

Properties

BinaryLength BinaryLength BinaryLength 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 Count Count Count

Gets the number of access control entries (ACEs) in the current RawAcl 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.

(Inherited from GenericAcl)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

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

Revision Revision Revision Revision

Gets the revision level of the RawAcl.

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)

Methods

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

(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)
InsertAce(Int32, GenericAce) InsertAce(Int32, GenericAce) InsertAce(Int32, GenericAce) InsertAce(Int32, GenericAce)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveAce(Int32) RemoveAce(Int32) RemoveAce(Int32) RemoveAce(Int32)

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

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.

(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