45 lines
2.8 KiB
C#
45 lines
2.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Security.Principal;
|
|
|
|
namespace System.Security.AccessControl
|
|
{
|
|
/// <summary>Represents a set of access rights to be audited for a user or group. This class cannot be inherited.</summary>
|
|
// Token: 0x02000276 RID: 630
|
|
[ComVisible(false)]
|
|
public sealed class SemaphoreAuditRule : AuditRule
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.SemaphoreAuditRule" /> class, specifying the user or group to audit, the rights to audit, and whether to audit success, failure, or both.</summary>
|
|
/// <param name="identity">The user or group the rule applies to. Must be of type <see cref="T:System.Security.Principal.SecurityIdentifier" /> or a type such as <see cref="T:System.Security.Principal.NTAccount" /> that can be converted to type <see cref="T:System.Security.Principal.SecurityIdentifier" />.</param>
|
|
/// <param name="eventRights">A bitwise combination of <see cref="T:System.Security.AccessControl.SemaphoreRights" /> values specifying the kinds of access to audit.</param>
|
|
/// <param name="flags">A bitwise combination of <see cref="T:System.Security.AccessControl.AuditFlags" /> values specifying whether to audit success, failure, or both.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="eventRights" /> specifies an invalid value.-or-<paramref name="flags" /> specifies an invalid value.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="identity" /> is null. -or-<paramref name="eventRights" /> is zero.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="identity" /> is neither of type <see cref="T:System.Security.Principal.SecurityIdentifier" /> nor of a type such as <see cref="T:System.Security.Principal.NTAccount" /> that can be converted to type <see cref="T:System.Security.Principal.SecurityIdentifier" />.</exception>
|
|
// Token: 0x06001755 RID: 5973 RVA: 0x0004E058 File Offset: 0x0004C258
|
|
public SemaphoreAuditRule(IdentityReference identity, SemaphoreRights semaphoreRights, AuditFlags flags)
|
|
: base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, flags)
|
|
{
|
|
this.semaphoreRights = semaphoreRights;
|
|
}
|
|
|
|
/// <summary>Gets the access rights affected by the audit rule.</summary>
|
|
/// <returns>A bitwise combination of <see cref="T:System.Security.AccessControl.SemaphoreRights" /> values that indicates the rights affected by the audit rule.</returns>
|
|
// Token: 0x1700076B RID: 1899
|
|
// (get) Token: 0x06001756 RID: 5974 RVA: 0x0004E070 File Offset: 0x0004C270
|
|
public SemaphoreRights SemaphoreRights
|
|
{
|
|
get
|
|
{
|
|
return this.semaphoreRights;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400129E RID: 4766
|
|
private SemaphoreRights semaphoreRights;
|
|
}
|
|
}
|