コード例 #1
0
 public void SetAccessControl(EventWaitHandleSecurity eventSecurity)
 {
     if (eventSecurity == null)
     {
         throw new ArgumentNullException("eventSecurity");
     }
     eventSecurity.Persist(this.safeWaitHandle);
 }
コード例 #2
0
        public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)
        {
            if (eventSecurity == null)
            {
                throw new ArgumentNullException(nameof(eventSecurity));
            }

            eventSecurity.Persist(handle.GetSafeWaitHandle());
        }
コード例 #3
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public void SetAccessControl(EventWaitHandleSecurity eventSecurity)
        {
            if (eventSecurity == null)
            {
                throw new ArgumentNullException("eventSecurity");
            }
            Contract.EndContractBlock();

            eventSecurity.Persist(safeWaitHandle);
        }
コード例 #4
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)
        {
            if (eventSecurity == null)
            {
                throw new ArgumentNullException("eventSecurity");
            }
            Contract.EndContractBlock();

            eventSecurity.Persist(handle.GetSafeWaitHandle());
        }
コード例 #5
0
        public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)
        {
            ArgumentNullException.ThrowIfNull(eventSecurity);

            eventSecurity.Persist(handle.GetSafeWaitHandle());
        }