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.​CustomAce
Assembly: System.Security.AccessControl
Inheritance: object → GenericAce → CustomAce
Represents an Access Control Entry (ACE) that is not defined by one of the members of the <see cref="T:System.Security.AccessControl.AceType" /> enumeration.
Fields and Constants
public static readonly
int
MaxOpaqueLength
Returns the maximum allowed length of an opaque data blob for this <see cref="T:System.Security.AccessControl.CustomAce" /> object.
Properties
public
int
BinaryLength
Gets the length, in bytes, of the binary representation of the current <see cref="T:System.Security.AccessControl.CustomAce" /> object. This length should be used before marshaling the ACL into a binary array with the <see cref="M:System.Security.AccessControl.CustomAce.GetBinaryForm(System.Byte[],System.Int32)" /> method.
public
int
OpaqueLength
Gets the length of the opaque data associated with this <see cref="T:System.Security.AccessControl.CustomAce" /> object.
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
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
public
void
GetBinaryForm​(byte[] binaryForm,
int offset)
Marshals the contents of the <see cref="T:System.Security.AccessControl.CustomAce" /> 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.CustomAce" /> is marshaled.
offset
The offset at which to start marshaling.
public
byte[]
GetOpaque​()
Returns the opaque data associated with this <see cref="T:System.Security.AccessControl.CustomAce" /> object.
Returns An array of byte values that represents the opaque data associated with this <see cref="T:System.Security.AccessControl.CustomAce" /> object.
public
void
SetOpaque​(byte[] opaque)
Sets the opaque callback data associated with this <see cref="T:System.Security.AccessControl.CustomAce" /> object.
opaque
An array of byte values that represents the opaque callback data for this <see cref="T:System.Security.AccessControl.CustomAce" /> object.
public
GenericAce
Copy​()
Inherited from GenericAce
Creates a deep copy of this Access Control Entry (ACE).
Returns The <see cref="T:System.Security.AccessControl.GenericAce" /> object that this method creates.
public
bool
Equals​(object o)
Inherited from GenericAce
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
int
GetHashCode​()
Inherited from GenericAce
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