System.Threading.Semaphore.SetAccessControl Method

Sets the access control security for a named system semaphore.

Syntax

public void SetAccessControl (System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity)

Parameters

semaphoreSecurity
A System.Security.AccessControl.SemaphoreSecurity object that represents the access control security to be applied to the named system semaphore.

Remarks

You can set access control security only on System.Threading.Semaphore objects that represent named system semaphores.

The user must have System.Security.AccessControl.SemaphoreRights.ChangePermissions rights to call this method, and the semaphore must have been opened with System.Security.AccessControl.SemaphoreRights.ChangePermissions rights.

Requirements

Namespace: System.Threading
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0