[System.Security.SecuritySafeCritical] // auto-generated public static void SetAccessControl(this Mutex mutex, MutexSecurity mutexSecurity) { if (mutexSecurity == null) throw new ArgumentNullException("mutexSecurity"); Contract.EndContractBlock(); mutexSecurity.Persist(mutex.GetSafeWaitHandle()); }
[System.Security.SecuritySafeCritical] // auto-generated public void SetAccessControl(MutexSecurity mutexSecurity) { if (mutexSecurity == null) throw new ArgumentNullException("mutexSecurity"); Contract.EndContractBlock(); mutexSecurity.Persist(safeWaitHandle); }
public void SetAccessControl(MutexSecurity mutexSecurity) { if (mutexSecurity == null) { throw new ArgumentNullException("mutexSecurity"); } mutexSecurity.Persist(base.safeWaitHandle); }