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.
Assembly: System (in System.dll)
[SECURITY CRITICAL]
Namespace:
System.Threading[ 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)
'Declaration <SecurityCriticalAttribute> _ Public Sub New ( _ initialCount As Integer, _ maximumCount As Integer, _ name As String _ )
Parameters
- initialCount
- Type: System.Int32
The initial number of requests for the semaphore that can be granted concurrently.
- maximumCount
- Type: System.Int32
The maximum number of requests for the semaphore that can be granted concurrently.
- name
- Type: System.String
The name of a named system semaphore object.
Show: