public void SetAccessControl(EventWaitHandleSecurity eventSecurity) { if (eventSecurity == null) { throw new ArgumentNullException("eventSecurity"); } eventSecurity.Persist(this.safeWaitHandle); }
public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity) { if (eventSecurity == null) { throw new ArgumentNullException(nameof(eventSecurity)); } eventSecurity.Persist(handle.GetSafeWaitHandle()); }
[System.Security.SecuritySafeCritical] // auto-generated public void SetAccessControl(EventWaitHandleSecurity eventSecurity) { if (eventSecurity == null) { throw new ArgumentNullException("eventSecurity"); } Contract.EndContractBlock(); eventSecurity.Persist(safeWaitHandle); }
[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()); }
public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity) { ArgumentNullException.ThrowIfNull(eventSecurity); eventSecurity.Persist(handle.GetSafeWaitHandle()); }