Bagikan melalui


PipesAclExtensions.SetAccessControl(PipeStream, PipeSecurity) Metode

Definisi

Mengubah atribut keamanan aliran pipa yang ada.

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)

Parameter

stream
PipeStream

Aliran pipa yang ada.

pipeSecurity
PipeSecurity

Informasi keamanan yang akan diterapkan ke aliran pipa.

Atribut

Pengecualian

pipeSecurityadalah null.

stream adalah instans yang terputus NamedPipeClientStream .

Berlaku untuk