using System;
using System.Security.Principal;
namespace System.Security.AccessControl
{
/// Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited.
// Token: 0x020004BD RID: 1213
public sealed class EventWaitHandleAccessRule : AccessRule
{
/// Initializes a new instance of the class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.
/// The user or group the rule applies to. Must be of type or a type such as that can be converted to type .
/// A bitwise combination of values specifying the rights allowed or denied.
/// One of the values specifying whether the rights are allowed or denied.
///
/// specifies an invalid value.-or- specifies an invalid value.
///
/// is null.-or- is zero.
///
/// is neither of type nor of a type such as that can be converted to type .
// Token: 0x06002D34 RID: 11572 RVA: 0x00093764 File Offset: 0x00091964
public EventWaitHandleAccessRule(IdentityReference identity, EventWaitHandleRights eventRights, AccessControlType type)
: base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow)
{
this.rights = eventRights;
}
/// Initializes a new instance of the class, specifying the name of the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.
/// The name of the user or group the rule applies to.
/// A bitwise combination of values specifying the rights allowed or denied.
/// One of the values specifying whether the rights are allowed or denied.
///
/// specifies an invalid value.-or- specifies an invalid value.
///
/// is zero.
///
/// is null.-or- is a zero-length string.-or- is longer than 512 characters.
// Token: 0x06002D35 RID: 11573 RVA: 0x0009377C File Offset: 0x0009197C
public EventWaitHandleAccessRule(string identity, EventWaitHandleRights eventRights, AccessControlType type)
: this(new SecurityIdentifier(identity), eventRights, type)
{
}
/// Gets the rights allowed or denied by the access rule.
/// A bitwise combination of values indicating the rights allowed or denied by the access rule.
// Token: 0x170008DA RID: 2266
// (get) Token: 0x06002D36 RID: 11574 RVA: 0x0009378C File Offset: 0x0009198C
public EventWaitHandleRights EventWaitHandleRights
{
get
{
return this.rights;
}
}
// Token: 0x040011D4 RID: 4564
private EventWaitHandleRights rights;
}
}