SemaphoreSecurity Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SemaphoreSecurity class.
SemaphoreSecurity() |
Initializes a new instance of the SemaphoreSecurity class with default values. |
SemaphoreSecurity(String, AccessControlSections) |
Initializes a new instance of the SemaphoreSecurity class with the specified sections of the access control security rules from the system semaphore with the specified name. |
- Source:
- SemaphoreSecurity.cs
- Source:
- SemaphoreSecurity.cs
- Source:
- SemaphoreSecurity.cs
Initializes a new instance of the SemaphoreSecurity class with default values.
public:
SemaphoreSecurity();
public SemaphoreSecurity ();
Public Sub New ()
Remarks
A new SemaphoreSecurity object always starts with an empty discretionary access list (DACL), which denies all access for all users.
Applies to
.NET 9 (package-provided) és más verziók
Termék | Verziók |
---|---|
.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 |
- Source:
- SemaphoreSecurity.cs
- Source:
- SemaphoreSecurity.cs
- Source:
- SemaphoreSecurity.cs
Initializes a new instance of the SemaphoreSecurity class with the specified sections of the access control security rules from the system semaphore with the specified name.
public:
SemaphoreSecurity(System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
public SemaphoreSecurity (string name, System.Security.AccessControl.AccessControlSections includeSections);
new System.Security.AccessControl.SemaphoreSecurity : string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.SemaphoreSecurity
Public Sub New (name As String, includeSections As AccessControlSections)
Parameters
- name
- String
The name of the system semaphore whose access control security rules are to be retrieved.
- includeSections
- AccessControlSections
A combination of AccessControlSections flags specifying the sections to retrieve.
Remarks
This constructor allows you to obtain the access control security for a named system semaphore without first creating a Semaphore object.
Caution must be exercised when working with named system objects. If there is a system object named name
that is not a semaphore, its control access security might be retrieved.
Applies to
.NET 9 (package-provided) és más verziók
Termék | Verziók |
---|---|
.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 |
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: