PipeAccessRule 构造函数
定义
初始化 PipeAccessRule 类的新实例。Initializes a new instance of the PipeAccessRule class.
重载
| PipeAccessRule(IdentityReference, PipeAccessRights, AccessControlType) |
使用指定的标识、管道访问权限和访问控制类型来初始化 PipeAccessRule 类的一个新实例。Initializes a new instance of the PipeAccessRule class with the specified identity, pipe access rights, and access control type. |
| PipeAccessRule(String, PipeAccessRights, AccessControlType) |
使用指定的标识、管道访问权限和访问控制类型来初始化 PipeAccessRule 类的一个新实例。Initializes a new instance of the PipeAccessRule class with the specified identity, pipe access rights, and access control type. |
PipeAccessRule(IdentityReference, PipeAccessRights, AccessControlType)
使用指定的标识、管道访问权限和访问控制类型来初始化 PipeAccessRule 类的一个新实例。Initializes a new instance of the PipeAccessRule class with the specified identity, pipe access rights, and access control type.
public:
PipeAccessRule(System::Security::Principal::IdentityReference ^ identity, System::IO::Pipes::PipeAccessRights rights, System::Security::AccessControl::AccessControlType type);
public PipeAccessRule (System.Security.Principal.IdentityReference identity, System.IO.Pipes.PipeAccessRights rights, System.Security.AccessControl.AccessControlType type);
new System.IO.Pipes.PipeAccessRule : System.Security.Principal.IdentityReference * System.IO.Pipes.PipeAccessRights * System.Security.AccessControl.AccessControlType -> System.IO.Pipes.PipeAccessRule
Public Sub New (identity As IdentityReference, rights As PipeAccessRights, type As AccessControlType)
参数
- identity
- IdentityReference
封装对用户帐户的引用的 IdentityReference 对象。An IdentityReference object that encapsulates a reference to a user account.
- rights
- PipeAccessRights
PipeAccessRights 值之一,该值指定与访问规则关联的操作的类型。One of the PipeAccessRights values that specifies the type of operation associated with the access rule.
- type
- AccessControlType
AccessControlType 值之一,该值指定是允许还是拒绝该操作。One of the AccessControlType values that specifies whether to allow or deny the operation.
注解
使用此构造函数创建可使用类持久保存的访问控制规则 PipeSecurity 。Use this constructor to create an access control rule that you can persist using the PipeSecurity class. 访问控制规则定义用户帐户权限,以确定在运行 Microsoft Windows 的计算机上允许或禁止的操作。Access control rules define user account rights that determine which actions are allowed or disallowed on computers that are running Microsoft Windows.
适用于
PipeAccessRule(String, PipeAccessRights, AccessControlType)
使用指定的标识、管道访问权限和访问控制类型来初始化 PipeAccessRule 类的一个新实例。Initializes a new instance of the PipeAccessRule class with the specified identity, pipe access rights, and access control type.
public:
PipeAccessRule(System::String ^ identity, System::IO::Pipes::PipeAccessRights rights, System::Security::AccessControl::AccessControlType type);
public PipeAccessRule (string identity, System.IO.Pipes.PipeAccessRights rights, System.Security.AccessControl.AccessControlType type);
new System.IO.Pipes.PipeAccessRule : string * System.IO.Pipes.PipeAccessRights * System.Security.AccessControl.AccessControlType -> System.IO.Pipes.PipeAccessRule
Public Sub New (identity As String, rights As PipeAccessRights, type As AccessControlType)
参数
- identity
- String
用户帐户的名称。The name of the user account.
- rights
- PipeAccessRights
PipeAccessRights 值之一,该值指定与访问规则关联的操作的类型。One of the PipeAccessRights values that specifies the type of operation associated with the access rule.
- type
- AccessControlType
AccessControlType 值之一,该值指定是允许还是拒绝该操作。One of the AccessControlType values that specifies whether to allow or deny the operation.
注解
使用此构造函数创建可使用类持久保存的访问控制规则 PipeSecurity 。Use this constructor to create an access control rule that you can persist using the PipeSecurity class. 访问控制规则定义用户帐户权限,以确定在运行 Microsoft Windows 的计算机上允许或禁止的操作。Access control rules define user account rights that determine which actions are allowed or disallowed on computers that are running Microsoft Windows.