SemaphoreAcl Class

Definition

Provides a Windows-specific extension method for creating Semaphore objects with specific access control list (ACL) security.

public static class SemaphoreAcl
Inheritance
SemaphoreAcl

Methods

Create(Int32, Int32, String, Boolean, SemaphoreSecurity)

Gets or creates an Semaphore instance, allowing a SemaphoreSecurity instance to be optionally specified to set it during the event creation.

OpenExisting(String, SemaphoreRights)

Opens a specified named semaphore, if it already exists, and applies the desired access rights.

TryOpenExisting(String, SemaphoreRights, Semaphore)

Tries to open a specified named semaphore, if it already exists, applies the desired access rights, and returns a value that indicates whether the operation succeeded.

Applies to

제품 버전
.NET 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 5, 6, 7, 8, 9