共用方式為


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 執行個體。

適用於