Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​AccessControl.​GenericAcl
Assembly: System.Security.AccessControl
Inheritance: object → GenericAcl
Implemented Interfaces
- Collections.​ICollection (Inherits: IEnumerable)
Represents an access control list (ACL) and is the base class for the <see cref="T:System.Security.AccessControl.CommonAcl" /> , <see cref="T:System.Security.AccessControl.DiscretionaryAcl" /> , <see cref="T:System.Security.AccessControl.RawAcl" /> , and <see cref="T:System.Security.AccessControl.SystemAcl" /> classes.
Fields and Constants
public static readonly
byte
AclRevision
The revision level of the current <see cref="T:System.Security.AccessControl.GenericAcl" /> . This value is returned by the <see cref="P:System.Security.AccessControl.GenericAcl.Revision" /> property for Access Control Lists (ACLs) that are not associated with Directory Services objects.
public static readonly
byte
AclRevisionDS
The revision level of the current <see cref="T:System.Security.AccessControl.GenericAcl" /> . This value is returned by the <see cref="P:System.Security.AccessControl.GenericAcl.Revision" /> property for Access Control Lists (ACLs) that are associated with Directory Services objects.
public static readonly
int
MaxBinaryLength
The maximum allowed binary length of a <see cref="T:System.Security.AccessControl.GenericAcl" /> object.
Properties
public
int
BinaryLength
Gets the length, in bytes, of the binary representation of the current <see cref="T:System.Security.AccessControl.GenericAcl" /> object. This length should be used before marshaling the ACL into a binary array with the <see cref="M:System.Security.AccessControl.GenericAcl.GetBinaryForm(System.Byte[],System.Int32)" /> method.
public
int
Count
Gets the number of access control entries (ACEs) in the current <see cref="T:System.Security.AccessControl.GenericAcl" /> object.
public
bool
IsSynchronized
This property is always set to <see langword="false" /> . It is implemented only because it is required for the implementation of the <see cref="T:System.Collections.ICollection" /> interface.
public
GenericAce
Item
public
byte
Revision
Gets the revision level of the <see cref="T:System.Security.AccessControl.GenericAcl" /> .
public
object
SyncRoot
This property always returns <see langword="null" /> . It is implemented only because it is required for the implementation of the <see cref="T:System.Collections.ICollection" /> interface.
Methods
public
void
CopyTo​(GenericAce[] array,
int index)
Copies each <see cref="T:System.Security.AccessControl.GenericAce" /> of the current <see cref="T:System.Security.AccessControl.GenericAcl" /> into the specified array.
array
The array into which copies of the <see cref="T:System.Security.AccessControl.GenericAce" /> objects contained by the current <see cref="T:System.Security.AccessControl.GenericAcl" /> are placed.
index
The zero-based index of <paramref name="array" /> where the copying begins.
public
void
GetBinaryForm​(byte[] binaryForm,
int offset)
Marshals the contents of the <see cref="T:System.Security.AccessControl.GenericAcl" /> object into the specified byte array beginning at the specified offset.
binaryForm
The byte array into which the contents of the <see cref="T:System.Security.AccessControl.GenericAcl" /> is marshaled.
offset
The offset at which to start marshaling.
public
AceEnumerator
GetEnumerator​()
Retrieves an object that you can use to iterate through the access control entries (ACEs) in an access control list (ACL).
Returns An enumerator object.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object