43 lines
2.7 KiB
C#
43 lines
2.7 KiB
C#
using System;
|
|
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: 0x020004CC RID: 1228
|
|
public sealed class MutexAuditRule : AuditRule
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.MutexAuditRule" /> 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.MutexRights" /> 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 translated to type <see cref="T:System.Security.Principal.SecurityIdentifier" />.</exception>
|
|
// Token: 0x06002D9A RID: 11674 RVA: 0x00093C90 File Offset: 0x00091E90
|
|
public MutexAuditRule(IdentityReference identity, MutexRights eventRights, AuditFlags flags)
|
|
: base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, flags)
|
|
{
|
|
this.rights = eventRights;
|
|
}
|
|
|
|
/// <summary>Gets the access rights affected by the audit rule.</summary>
|
|
/// <returns>A bitwise combination of <see cref="T:System.Security.AccessControl.MutexRights" /> values that indicates the rights affected by the audit rule.</returns>
|
|
// Token: 0x170008F9 RID: 2297
|
|
// (get) Token: 0x06002D9B RID: 11675 RVA: 0x00093CA8 File Offset: 0x00091EA8
|
|
public MutexRights MutexRights
|
|
{
|
|
get
|
|
{
|
|
return this.rights;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04001206 RID: 4614
|
|
private MutexRights rights;
|
|
}
|
|
}
|