PipesAclExtensions.SetAccessControl(PipeStream, PipeSecurity) 方法

定义

更改现有管道流的安全属性。

public:
[System::Runtime::CompilerServices::Extension]
 static void SetAccessControl(System::IO::Pipes::PipeStream ^ stream, System::IO::Pipes::PipeSecurity ^ pipeSecurity);
public static void SetAccessControl (this System.IO.Pipes.PipeStream stream, System.IO.Pipes.PipeSecurity pipeSecurity);
[System.Security.SecurityCritical]
public static void SetAccessControl (this System.IO.Pipes.PipeStream stream, System.IO.Pipes.PipeSecurity pipeSecurity);
static member SetAccessControl : System.IO.Pipes.PipeStream * System.IO.Pipes.PipeSecurity -> unit
[<System.Security.SecurityCritical>]
static member SetAccessControl : System.IO.Pipes.PipeStream * System.IO.Pipes.PipeSecurity -> unit
<Extension()>
Public Sub SetAccessControl (stream As PipeStream, pipeSecurity As PipeSecurity)

参数

stream
PipeStream

现有管道流。

pipeSecurity
PipeSecurity

应用于管道流的安全信息。

属性

例外

pipeSecuritynull

stream 是一个已断开连接的 NamedPipeClientStream 实例。

适用于