MutexSecurity MutexSecurity MutexSecurity MutexSecurity Constructors

Definition

Overloads

MutexSecurity() MutexSecurity() MutexSecurity()

Initializes a new instance of the MutexSecurity class with default values.

MutexSecurity(String, AccessControlSections) MutexSecurity(String, AccessControlSections) MutexSecurity(String, AccessControlSections) MutexSecurity(String, AccessControlSections)

Initializes a new instance of the MutexSecurity class with the specified sections of the access control security rules from the system mutex with the specified name.

MutexSecurity() MutexSecurity() MutexSecurity()

Initializes a new instance of the MutexSecurity class with default values.

public:
 MutexSecurity();
public MutexSecurity ();
Public Sub New ()

Exceptions

This class is not supported on Windows 98 or Windows Millennium Edition.

Remarks

A new MutexSecurity object always starts with an empty discretionary access list (DACL), which denies all access for all users.

MutexSecurity(String, AccessControlSections) MutexSecurity(String, AccessControlSections) MutexSecurity(String, AccessControlSections) MutexSecurity(String, AccessControlSections)

Initializes a new instance of the MutexSecurity class with the specified sections of the access control security rules from the system mutex with the specified name.

public:
 MutexSecurity(System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
public MutexSecurity (string name, System.Security.AccessControl.AccessControlSections includeSections);
new System.Security.AccessControl.MutexSecurity : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.MutexSecurity
Public Sub New (name As String, includeSections As AccessControlSections)

Parameters

name
String String String String

The name of the system mutex whose access control security rules are to be retrieved.

includeSections
AccessControlSections AccessControlSections AccessControlSections AccessControlSections

A combination of AccessControlSections flags specifying the sections to retrieve.

Exceptions

There is no system object with the specified name.

This class is not supported on Windows 98 or Windows Millennium Edition.

Remarks

This constructor allows you to obtain the access control security for a named system mutex without first creating a Mutex object.

Caution must be exercised when working with named system objects. If there is a system object named name that is not a mutex, its control access security might be retrieved.

Applies to