ObjectAuditRule
Represents a combination of a user's identity, an access mask, and audit conditions. An ObjectAuditRule object also contains information about the type of object to which the rule applies, the type of child object that can inherit the rule, how the rule is inherited by child objects, and how that inheritance is propagated.
using System.Runtime.CompilerServices;
using System.Security.Principal;
namespace System.Security.AccessControl
{
public abstract class ObjectAuditRule : AuditRule
{
public Guid InheritedObjectType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public ObjectAceFlags ObjectFlags {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
public Guid ObjectType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
[System.Runtime.CompilerServices.NullableContext(1)]
protected ObjectAuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AuditFlags auditFlags)
: base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AuditFlags.None)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
}