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.​GenericAce
Assembly: System.Security.AccessControl
Inheritance: object → GenericAce
Represents an Access Control Entry (ACE), and is the base class for all other ACE classes.
Properties
public
AceFlags
AceFlags
Gets or sets the <see cref="T:System.Security.AccessControl.AceFlags" /> associated with this <see cref="T:System.Security.AccessControl.GenericAce" /> object.
public
AceType
AceType
Gets the type of this Access Control Entry (ACE).
public
AuditFlags
AuditFlags
Gets the audit information associated with this Access Control Entry (ACE).
public
int
BinaryLength
Gets the length, in bytes, of the binary representation of the current <see cref="T:System.Security.AccessControl.GenericAce" /> object. This length should be used before marshaling the ACL into a binary array with the <see cref="M:System.Security.AccessControl.GenericAce.GetBinaryForm(System.Byte[],System.Int32)" /> method.
public
InheritanceFlags
InheritanceFlags
Gets flags that specify the inheritance properties of this Access Control Entry (ACE).
public
bool
IsInherited
Gets a Boolean value that specifies whether this Access Control Entry (ACE) is inherited or is set explicitly.
public
PropagationFlags
PropagationFlags
Gets flags that specify the inheritance propagation properties of this Access Control Entry (ACE).
Methods
Returns The <see cref="T:System.Security.AccessControl.GenericAce" /> object that this method creates.
public static
GenericAce
CreateFromBinaryForm​(byte[] binaryForm,
int offset)
Creates a <see cref="T:System.Security.AccessControl.GenericAce" /> object from the specified binary data.
Returns The <see cref="T:System.Security.AccessControl.GenericAce" /> object this method creates.
binaryForm
The binary data from which to create the new <see cref="T:System.Security.AccessControl.GenericAce" /> object.
offset
The offset at which to begin unmarshaling.
public
bool
Equals​(object o)
Determines whether the specified <see cref="T:System.Security.AccessControl.GenericAce" /> object is equal to the current <see cref="T:System.Security.AccessControl.GenericAce" /> object.
Returns <see langword="true" /> if the specified <see cref="T:System.Security.AccessControl.GenericAce" /> object is equal to the current <see cref="T:System.Security.AccessControl.GenericAce" /> object; otherwise, <see langword="false" /> .
o
The <see cref="T:System.Security.AccessControl.GenericAce" /> object to compare to the current <see cref="T:System.Security.AccessControl.GenericAce" /> object.
public
void
GetBinaryForm​(byte[] binaryForm,
int offset)
Marshals the contents of the <see cref="T:System.Security.AccessControl.GenericAce" /> 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.GenericAce" /> is marshaled.
offset
The offset at which to start marshaling.
public
int
GetHashCode​()
Serves as a hash function for the <see cref="T:System.Security.AccessControl.GenericAce" /> class. The <see cref="M:System.Security.AccessControl.GenericAce.GetHashCode" /> method is suitable for use in hashing algorithms and data structures like a hash table.
Returns A hash code for the current <see cref="T:System.Security.AccessControl.GenericAce" /> object.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object