Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


MutexSecurity Constructors

Definition

Initializes a new instance of the MutexSecurity class.

Overloads

MutexSecurity()

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

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()

Source:
MutexSecurity.cs
Source:
MutexSecurity.cs
Source:
MutexSecurity.cs
Source:
MutexSecurity.cs

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

public MutexSecurity ();

Remarks

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

Applies to

.NET 9 (package-provided) και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

MutexSecurity(String, AccessControlSections)

Source:
MutexSecurity.cs
Source:
MutexSecurity.cs
Source:
MutexSecurity.cs
Source:
MutexSecurity.cs

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 (string name, System.Security.AccessControl.AccessControlSections includeSections);

Parameters

name
String

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

includeSections
AccessControlSections

A combination of AccessControlSections flags specifying the sections to retrieve.

Exceptions

There is no system object with the specified name.

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

.NET 9 (package-provided) και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9