ThreadingAclExtensions.SetAccessControl Method

Definition

Overloads

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

Sets the security descriptors for the specified event wait handle.

SetAccessControl(Mutex, MutexSecurity)

Sets the security descriptors for the specified mutex.

SetAccessControl(Semaphore, SemaphoreSecurity)

Sets the security descriptors for the specified semaphore.

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs

Sets the security descriptors for the specified event wait handle.

public static void SetAccessControl (this System.Threading.EventWaitHandle handle, System.Security.AccessControl.EventWaitHandleSecurity eventSecurity);

Parameters

handle
EventWaitHandle

The event wait handle onto which the eventSecurity will be applied.

eventSecurity
EventWaitHandleSecurity

The security descriptors to apply to the specified handle.

Exceptions

eventSecurity is null.

Applies to

.NET 9 (package-provided) e outras versões
Produto Versões
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

SetAccessControl(Mutex, MutexSecurity)

Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs

Sets the security descriptors for the specified mutex.

public static void SetAccessControl (this System.Threading.Mutex mutex, System.Security.AccessControl.MutexSecurity mutexSecurity);

Parameters

mutex
Mutex

The mutex onto which the mutexSecurity will be applied.

mutexSecurity
MutexSecurity

The security descriptors to apply to the specified mutex.

Exceptions

mutexSecurity is null.

Applies to

.NET 9 (package-provided) e outras versões
Produto Versões
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

SetAccessControl(Semaphore, SemaphoreSecurity)

Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs

Sets the security descriptors for the specified semaphore.

public static void SetAccessControl (this System.Threading.Semaphore semaphore, System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity);

Parameters

semaphore
Semaphore

The semaphore onto which the semaphoreSecurity will be applied.

semaphoreSecurity
SemaphoreSecurity

The security descriptors to apply to the specified semaphore.

Exceptions

semaphoreSecurity is null.

Applies to

.NET 9 (package-provided) e outras versões
Produto Versões
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9