Semaphore Constructor (Int32, Int32, String)
For apps that target Windows Phone OS 7.0 and 7.1, do not use this member in your app. If you do, your code will throw a MethodAccessException. This member is security-critical, which restricts it to internal use by the .NET Framework for Windows Phone class library.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, and optionally specifying the name of a system semaphore object.
Assembly: System (in System.dll)
<SecurityCriticalAttribute> _ Public Sub New ( _ initialCount As Integer, _ maximumCount As Integer, _ name As String _ )
[SecurityCriticalAttribute] public Semaphore( int initialCount, int maximumCount, string name )
The initial number of requests for the semaphore that can be granted concurrently.
The maximum number of requests for the semaphore that can be granted concurrently.
The name of a named system semaphore object.
Windows Phone OS
Supported in: 8.1, 8.0