﻿<?xml version="1.0" encoding="utf-8"?><Type Name="EventWaitHandleAccessRule" FullName="System.Security.AccessControl.EventWaitHandleAccessRule"><TypeSignature Language="C#" Value="public sealed class EventWaitHandleAccessRule : System.Security.AccessControl.AccessRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit EventWaitHandleAccessRule extends System.Security.AccessControl.AccessRule" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Security.AccessControl.AccessRule</BaseTypeName></Base><Interfaces /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> class is one of a set of classes that the .NET Framework provides for managing Windows access control security on named system events. For an overview of these classes, and their relationship to the underlying Windows access control structures, see <see cref="T:System.Security.AccessControl.EventWaitHandleSecurity" />.</para><block subset="none" type="note"><para>Windows access control security is meaningful only for named system events. If an <see cref="T:System.Threading.EventWaitHandle" /> object represents a local event, access control is irrelevant.</para></block><para>To get a list of the rules currently applied to a named event, use the <see cref="M:System.Threading.EventWaitHandle.GetAccessControl" /> method to get an <see cref="T:System.Security.AccessControl.EventWaitHandleSecurity" /> object, and then use its <see cref="M:System.Security.AccessControl.CommonObjectSecurity.GetAccessRules(System.Boolean,System.Boolean,System.Type)" /> method to obtain a collection of <see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> objects.</para><para><see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> objects do not map one-to-one with access control entries in the underlying discretionary access control list (DACL). When you get the set of all access rules for an event, the set contains the minimum number of rules currently required to express all the access control entries. </para><block subset="none" type="note"><para>The underlying access control entries change as you apply and remove rules. The information in rules is merged if possible, to maintain the smallest number of access control entries. Thus, when you get the current list of rules, it might not look exactly like the list of all the rules you have added.</para></block><para>Use <see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> objects to specify the access rights to allow or deny to a user or group. An <see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> object always represents either allowed access or denied access, never both.</para><para>To apply a rule to a named system event, use the <see cref="M:System.Threading.EventWaitHandle.GetAccessControl" /> method to get the <see cref="T:System.Security.AccessControl.EventWaitHandleSecurity" /> object. Modify the <see cref="T:System.Security.AccessControl.EventWaitHandleSecurity" /> object by using its methods to add the rule, and then use the <see cref="M:System.Threading.EventWaitHandle.SetAccessControl(System.Security.AccessControl.EventWaitHandleSecurity)" /> method to reattach the security object.</para><block subset="none" type="note"><para>Changes you make to an <see cref="T:System.Security.AccessControl.EventWaitHandleSecurity" /> object do not affect the access levels of the named event until you call the <see cref="M:System.Threading.EventWaitHandle.SetAccessControl(System.Security.AccessControl.EventWaitHandleSecurity)" /> method to assign the altered security object to the named event.</para></block><para><see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> objects are immutable. Security for an event is modified using the methods of the <see cref="T:System.Security.AccessControl.EventWaitHandleSecurity" /> class to add or remove rules; as you do this, the underlying access control entries are modified. </para><block subset="none" type="note"><para>Security on synchronization objects is not supported for Windows 98 or Windows Millennium Edition.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited. </para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public EventWaitHandleAccessRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.EventWaitHandleRights eventRights, System.Security.AccessControl.AccessControlType type);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Security.Principal.IdentityReference identity, valuetype System.Security.AccessControl.EventWaitHandleRights eventRights, valuetype System.Security.AccessControl.AccessControlType type) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="identity" Type="System.Security.Principal.IdentityReference" /><Parameter Name="eventRights" Type="System.Security.AccessControl.EventWaitHandleRights" /><Parameter Name="type" Type="System.Security.AccessControl.AccessControlType" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>To wait on an <see cref="T:System.Threading.EventWaitHandle" /> (by calling the <see cref="Overload:System.Threading.WaitHandle.WaitOne" />, <see cref="Overload:System.Threading.WaitHandle.WaitAny" /> or <see cref="Overload:System.Threading.WaitHandle.WaitAll" /> method), a user must have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Synchronize" /> access. To signal an event by calling the <see cref="M:System.Threading.EventWaitHandle.Set" /> method, or to reset it to the unsignaled state by calling the <see cref="M:System.Threading.EventWaitHandle.Reset" /> method, a user must have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Modify" /> access. To signal an <see cref="T:System.Threading.EventWaitHandle" /> object and then wait on it by calling the <see cref="Overload:System.Threading.WaitHandle.SignalAndWait" /> method, a user must have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Synchronize" /> and <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Modify" /> access.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.</para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />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"><attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of <see cref="T:System.Security.AccessControl.EventWaitHandleRights" /> values specifying the rights allowed or denied.</param><param name="type"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.AccessControlType" /> values specifying whether the rights are allowed or denied.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public EventWaitHandleAccessRule (string identity, System.Security.AccessControl.EventWaitHandleRights eventRights, System.Security.AccessControl.AccessControlType type);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string identity, valuetype System.Security.AccessControl.EventWaitHandleRights eventRights, valuetype System.Security.AccessControl.AccessControlType type) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="identity" Type="System.String" /><Parameter Name="eventRights" Type="System.Security.AccessControl.EventWaitHandleRights" /><Parameter Name="type" Type="System.Security.AccessControl.AccessControlType" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>To wait on an <see cref="T:System.Threading.EventWaitHandle" /> (by calling the <see cref="Overload:System.Threading.WaitHandle.WaitOne" />, <see cref="Overload:System.Threading.WaitHandle.WaitAny" /> or <see cref="Overload:System.Threading.WaitHandle.WaitAll" /> method), a user must have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Synchronize" /> access. To signal an event by calling the <see cref="M:System.Threading.EventWaitHandle.Set" /> method, or to reset it to the unsignaled state by calling the <see cref="M:System.Threading.EventWaitHandle.Reset" /> method, a user must have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Modify" /> access. To signal an <see cref="T:System.Threading.EventWaitHandle" /> object and then wait on it by calling the <see cref="Overload:System.Threading.WaitHandle.SignalAndWait" /> method, a user must have <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Synchronize" /> and <see cref="F:System.Security.AccessControl.EventWaitHandleRights.Modify" /> access.</para><para>This constructor is equivalent to creating an <see cref="T:System.Security.Principal.NTAccount" /> object, by passing <paramref name="identity" /> to the <see cref="M:System.Security.Principal.NTAccount.#ctor(System.String)" /> constructor, and passing the newly created <see cref="T:System.Security.Principal.NTAccount" /> object to the <see cref="M:System.Security.AccessControl.EventWaitHandleAccessRule.#ctor(System.Security.Principal.IdentityReference,System.Security.AccessControl.EventWaitHandleRights,System.Security.AccessControl.AccessControlType)" /> constructor.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> 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.</para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />The name of the user or group the rule applies to.</param><param name="eventRights"><attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of <see cref="T:System.Security.AccessControl.EventWaitHandleRights" /> values specifying the rights allowed or denied.</param><param name="type"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.AccessControlType" /> values specifying whether the rights are allowed or denied.</param></Docs></Member><Member MemberName="EventWaitHandleRights"><MemberSignature Language="C#" Value="public System.Security.AccessControl.EventWaitHandleRights EventWaitHandleRights { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Security.AccessControl.EventWaitHandleRights EventWaitHandleRights" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.AccessControl.EventWaitHandleRights</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="T:System.Security.AccessControl.EventWaitHandleAccessRule" /> objects are immutable. You can create a new access rule representing a different user, different rights, or a different <see cref="T:System.Security.AccessControl.AccessControlType" />, but you cannot modify an existing access rule.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the rights allowed or denied by the access rule.</para></summary></Docs></Member></Members></Type>