Skip to content

Commit 5476124

Browse files
authored
make note of newer methods (dotnet#8095)
1 parent 12a6f4d commit 5476124

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

xml/System.Threading/Mutex.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,11 @@ There was some other error. The `HResult` property may provide more information.
588588
## Remarks
589589
The <xref:System.Threading.Mutex.GetAccessControl%2A> method uses the following combination of flags (combined using the bitwise OR operation) to search for permissions: <xref:System.Security.AccessControl.AccessControlSections.Access?displayProperty=nameWithType>, <xref:System.Security.AccessControl.AccessControlSections.Owner?displayProperty=nameWithType>, and <xref:System.Security.AccessControl.AccessControlSections.Group?displayProperty=nameWithType>.
590590
591-
The user must have <xref:System.Security.AccessControl.MutexRights.ReadPermissions?displayProperty=nameWithType> to call this method, and the mutex must have been opened with <xref:System.Security.AccessControl.MutexRights.ReadPermissions?displayProperty=nameWithType>.
592-
593-
594-
591+
The user must have <xref:System.Security.AccessControl.MutexRights.ReadPermissions?displayProperty=nameWithType> to call this method, and the mutex must have been opened with <xref:System.Security.AccessControl.MutexRights.ReadPermissions?displayProperty=nameWithType>.
592+
593+
> [!NOTE]
594+
> In .NET Core and .NET 5+, the equivalent method is <xref:System.Threading.ThreadingAclExtensions.GetAccessControl%2A>.
595+
595596
## Examples
596597
The following code example demonstrates the cross-process behavior of a named mutex with access control security. The example uses the <xref:System.Threading.Mutex.OpenExisting%28System.String%29> method overload to test for the existence of a named mutex.
597598
@@ -937,10 +938,11 @@ There was some other error. The `HResult` property may provide more information.
937938
<format type="text/markdown"><![CDATA[
938939
939940
## Remarks
940-
The user must have <xref:System.Security.AccessControl.MutexRights.ChangePermissions?displayProperty=nameWithType> rights to call this method, and the mutex must have been opened with <xref:System.Security.AccessControl.MutexRights.ChangePermissions?displayProperty=nameWithType>.
941-
942-
943-
941+
The user must have <xref:System.Security.AccessControl.MutexRights.ChangePermissions?displayProperty=nameWithType> rights to call this method, and the mutex must have been opened with <xref:System.Security.AccessControl.MutexRights.ChangePermissions?displayProperty=nameWithType>.
942+
943+
> [!NOTE]
944+
> In .NET Core and .NET 5+, the equivalent method is <xref:System.Threading.ThreadingAclExtensions.SetAccessControl%2A>.
945+
944946
## Examples
945947
The following code example demonstrates the cross-process behavior of a named mutex with access control security. The example uses the <xref:System.Threading.Mutex.OpenExisting%28System.String%29> method overload to test for the existence of a named mutex.
946948

0 commit comments

Comments
 (0)