|
199 | 199 | <Docs>
|
200 | 200 | <param name="initialCount">The initial number of requests for the semaphore that can be granted concurrently.</param>
|
201 | 201 | <param name="maximumCount">The maximum number of requests for the semaphore that can be granted concurrently.</param>
|
202 |
| - <param name="name">The name of a named system semaphore object.</param> |
| 202 | + <param name="name">The name of the semaphore. If it is <see langword="null" /> or empty, a process-local semaphore is created. If the name is prefixed by "Global\", a machine-wide semaphore is created (or the existing one returned). If it is prefixed by "Local\", a session-wide semaphore is created (or the existing one returned). If the name is not prefixed at all, a session-wide semaphore is created (same as prefix "Local\"). Both prefix and name are case-sensitive.</param> |
203 | 203 | <summary>Initializes a new instance of the <see cref="T:System.Threading.Semaphore" /> class, specifying the initial number of entries and the maximum number of concurrent entries, and optionally specifying the name of a system semaphore object.</summary>
|
204 | 204 | <remarks>
|
205 | 205 | <format type="text/markdown"><![CDATA[
|
|
291 | 291 | <Docs>
|
292 | 292 | <param name="initialCount">The initial number of requests for the semaphore that can be satisfied concurrently.</param>
|
293 | 293 | <param name="maximumCount">The maximum number of requests for the semaphore that can be satisfied concurrently.</param>
|
294 |
| - <param name="name">The name of a named system semaphore object.</param> |
| 294 | + <param name="name">The name of the semaphore. If it is <see langword="null" /> or empty, a process-local semaphore is created. If the name is prefixed by "Global\", a machine-wide semaphore is created (or the existing one returned). If it is prefixed by "Local\", a session-wide semaphore is created (or the existing one returned). If the name is not prefixed at all, a session-wide semaphore is created (same as prefix "Local\"). Both prefix and name are case-sensitive.</param> |
295 | 295 | <param name="createdNew">When this method returns, contains <see langword="true" /> if a local semaphore was created (that is, if <paramref name="name" /> is <see langword="null" /> or an empty string) or if the specified named system semaphore was created; <see langword="false" /> if the specified named system semaphore already existed. This parameter is passed uninitialized.</param>
|
296 | 296 | <summary>Initializes a new instance of the <see cref="T:System.Threading.Semaphore" /> class, specifying the initial number of entries and the maximum number of concurrent entries, 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.</summary>
|
297 | 297 | <remarks>
|
|
368 | 368 | <Docs>
|
369 | 369 | <param name="initialCount">The initial number of requests for the semaphore that can be satisfied concurrently.</param>
|
370 | 370 | <param name="maximumCount">The maximum number of requests for the semaphore that can be satisfied concurrently.</param>
|
371 |
| - <param name="name">The name of a named system semaphore object.</param> |
| 371 | + <param name="name">The name of the semaphore. If it is <see langword="null" /> or empty, a process-local semaphore is created. If the name is prefixed by "Global\", a machine-wide semaphore is created (or the existing one returned). If it is prefixed by "Local\", a session-wide semaphore is created (or the existing one returned). If the name is not prefixed at all, a session-wide semaphore is created (same as prefix "Local\"). Both prefix and name are case-sensitive.</param> |
372 | 372 | <param name="createdNew">When this method returns, contains <see langword="true" /> if a local semaphore was created (that is, if <paramref name="name" /> is <see langword="null" /> or an empty string) or if the specified named system semaphore was created; <see langword="false" /> if the specified named system semaphore already existed. This parameter is passed uninitialized.</param>
|
373 | 373 | <param name="semaphoreSecurity">A <see cref="T:System.Security.AccessControl.SemaphoreSecurity" /> object that represents the access control security to be applied to the named system semaphore.</param>
|
374 | 374 | <summary>Initializes a new instance of the <see cref="T:System.Threading.Semaphore" /> class, specifying the initial number of entries and the maximum number of concurrent entries, optionally specifying the name of a system semaphore object, specifying a variable that receives a value indicating whether a new system semaphore was created, and specifying security access control for the system semaphore.</summary>
|
|
545 | 545 | <Parameter Name="name" Type="System.String" />
|
546 | 546 | </Parameters>
|
547 | 547 | <Docs>
|
548 |
| - <param name="name">The name of the system semaphore to open.</param> |
| 548 | + <param name="name">The name of the semaphore. If it's prefixed by "Global\", it refers to a machine-wide semaphore. If it's prefixed by "Local\" or doesn't have a prefix, it refers to a session-wide semaphore. Both prefix and name are case-sensitive.</param> |
549 | 549 | <summary>Opens the specified named semaphore, if it already exists.</summary>
|
550 | 550 | <returns>An object that represents the named system semaphore.</returns>
|
551 | 551 | <remarks>
|
|
620 | 620 | <Parameter Name="rights" Type="System.Security.AccessControl.SemaphoreRights" Index="1" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0" />
|
621 | 621 | </Parameters>
|
622 | 622 | <Docs>
|
623 |
| - <param name="name">The name of the system semaphore to open.</param> |
| 623 | + <param name="name">The name of the semaphore. If it's prefixed by "Global\", it refers to a machine-wide semaphore. If it's prefixed by "Local\" or doesn't have a prefix, it refers to a session-wide semaphore. Both prefix and name are case-sensitive.</param> |
624 | 624 | <param name="rights">A bitwise combination of the enumeration values that represent the desired security access.</param>
|
625 | 625 | <summary>Opens the specified named semaphore, if it already exists, with the desired security access.</summary>
|
626 | 626 | <returns>An object that represents the named system semaphore.</returns>
|
|
959 | 959 | <Parameter Name="result" Type="System.Threading.Semaphore" RefType="out" Index="1" FrameworkAlternate="dotnet-uwp-10.0;net-5.0;netcore-1.0;netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netcore-3.1;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netstandard-1.0;netstandard-1.1;netstandard-1.2;netstandard-1.3;netstandard-1.4;netstandard-1.6;netstandard-2.0;netstandard-2.1;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0" />
|
960 | 960 | </Parameters>
|
961 | 961 | <Docs>
|
962 |
| - <param name="name">The name of the system semaphore to open.</param> |
| 962 | + <param name="name">The name of the semaphore. If it's prefixed by "Global\", it refers to a machine-wide semaphore. If it's prefixed by "Local\" or doesn't have a prefix, it refers to a session-wide semaphore. Both prefix and name are case-sensitive.</param> |
963 | 963 | <param name="result">When this method returns, contains a <see cref="T:System.Threading.Semaphore" /> object that represents the named semaphore if the call succeeded, or <see langword="null" /> if the call failed. This parameter is treated as uninitialized.</param>
|
964 | 964 | <summary>Opens the specified named semaphore, if it already exists, and returns a value that indicates whether the operation succeeded.</summary>
|
965 | 965 | <returns>
|
|
1016 | 1016 | <Parameter Name="result" Type="System.Threading.Semaphore" RefType="out" Index="2" FrameworkAlternate="netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0" />
|
1017 | 1017 | </Parameters>
|
1018 | 1018 | <Docs>
|
1019 |
| - <param name="name">The name of the system semaphore to open.</param> |
| 1019 | + <param name="name">The name of the semaphore. If it's prefixed by "Global\", it refers to a machine-wide semaphore. If it's prefixed by "Local\" or doesn't have a prefix, it refers to a session-wide semaphore. Both prefix and name are case-sensitive.</param> |
1020 | 1020 | <param name="rights">A bitwise combination of the enumeration values that represent the desired security access.</param>
|
1021 | 1021 | <param name="result">When this method returns, contains a <see cref="T:System.Threading.Semaphore" /> object that represents the named semaphore if the call succeeded, or <see langword="null" /> if the call failed. This parameter is treated as uninitialized.</param>
|
1022 | 1022 | <summary>Opens the specified named semaphore, if it already exists, with the desired security access, and returns a value that indicates whether the operation succeeded.</summary>
|
|
0 commit comments