Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Semaphore Constructor

Initializes a new instance of the Semaphore class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Semaphore(Int32, Int32) Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries and optionally reserving some entries.
Public method Semaphore(Int32, Int32, String) Security Critical. 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.
Public method Semaphore(Int32, Int32, String, Boolean) Security Critical. Initializes a new instance of the Semaphore class, specifying the maximum number of concurrent entries, optionally reserving some entries for the calling thread, optionally specifying the name of a system semaphore object, and specifying a variable that receives a value indicating whether a new system semaphore was created.
Top

Show:
© 2015 Microsoft