System.Threading.EventWaitHandle.GetAccessControl Method

Gets an System.Security.AccessControl.EventWaitHandleSecurity object that represents the access control security for the named system event represented by the current System.Threading.EventWaitHandle object.

Syntax

public System.Security.AccessControl.EventWaitHandleSecurity GetAccessControl ()

Returns

An System.Security.AccessControl.EventWaitHandleSecurity object that represents the access control security for the named system event.

Remarks

The EventWaitHandle.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.EventWaitHandleRights.ReadPermissions rights to call this method, and the event must have been opened with the System.Security.AccessControl.EventWaitHandleRights.ReadPermissions flag.

Requirements

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