System.Threading.Mutex.GetAccessControl Method

Gets a System.Security.AccessControl.MutexSecurity object that represents the access control security for the named mutex.

Syntax

public System.Security.AccessControl.MutexSecurity GetAccessControl ()

Returns

A System.Security.AccessControl.MutexSecurity object that represents the access control security for the named mutex.

Remarks

The Mutex.GetAccessControl method uses the following combination of flags (combined using the bitwise OR operation) to search for permissions: System.Security.AccessControl.AccessControlSections.Access, System.Security.AccessControl.AccessControlSections.Owner, and System.Security.AccessControl.AccessControlSections.Group.

The user must have System.Security.AccessControl.MutexRights.ReadPermissions to call this method, and the mutex must have been opened with System.Security.AccessControl.MutexRights.ReadPermissions.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0