PipeStream.SetAccessControl(PipeSecurity) 方法

定义

PipeSecurity 对象所指定的访问控制列表 (ACL) 项应用于由当前 PipeStream 对象指定的管道。Applies the access control list (ACL) entries specified by a PipeSecurity object to the pipe specified by the current PipeStream object.

public:
 void SetAccessControl(System::IO::Pipes::PipeSecurity ^ pipeSecurity);
[System.Security.SecurityCritical]
public void SetAccessControl (System.IO.Pipes.PipeSecurity pipeSecurity);
member this.SetAccessControl : System.IO.Pipes.PipeSecurity -> unit

参数

pipeSecurity
PipeSecurity

一个 PipeSecurity 对象,该对象指定要应用于当前管道的访问控制列表 (ACL) 项。A PipeSecurity object that specifies an access control list (ACL) entry to apply to the current pipe.

属性

异常

管道已关闭。The pipe is closed.

pipeSecuritynullpipeSecurity is null.

用于设置安全信息的基础调用失败。The underlying call to set security information failed.

用于设置安全信息的基础调用失败。The underlying call to set security information failed.

用于设置安全信息的基础调用失败。The underlying call to set security information failed.

注解

访问控制列表(ACL)介绍了在指定文件上执行特定操作的权限,或不具有权限的个人和/或组。An access control list (ACL) describes individuals and/or groups that have, or do not have, rights to perform specific actions on a specified file. 有关详细信息,请参阅如何:添加或移除访问控制列表项For more information, see How to: Add or Remove Access Control List Entries.

适用于