SemaphoreSecurity 构造函数

定义

初始化 SemaphoreSecurity 类的新实例。

重载

SemaphoreSecurity()

使用默认值初始化 SemaphoreSecurity 类的新实例。

SemaphoreSecurity(String, AccessControlSections)

使用来自具有指定名称的系统信号量的访问控制安全性规则的指定部分来初始化 SemaphoreSecurity 类的新实例。

SemaphoreSecurity()

使用默认值初始化 SemaphoreSecurity 类的新实例。

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

注解

SemaphoreSecurity 对象始终以空的任意访问列表开头, (DACL) ,该列表拒绝所有用户的所有访问。

适用于

SemaphoreSecurity(String, AccessControlSections)

使用来自具有指定名称的系统信号量的访问控制安全性规则的指定部分来初始化 SemaphoreSecurity 类的新实例。

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)

参数

name
String

要检索其访问控制安全性规则的系统信号量的名称。

includeSections
AccessControlSections

指定要检索的部分的 AccessControlSections 标志的组合。

注解

此构造函数允许你获取命名系统信号灯的访问控制安全性,而无需首先创建 Semaphore 对象。

在使用命名系统对象时必须谨慎。 如果有一 name 个名为不是信号灯的系统对象,则可能会检索其控制访问安全性。

适用于