Επεξεργασία

Κοινή χρήση μέσω


PipesAclExtensions.SetAccessControl(PipeStream, PipeSecurity) Method

Definition

Changes the security attributes of an existing pipe stream.

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)

Parameters

stream
PipeStream

An existing pipe stream.

pipeSecurity
PipeSecurity

The security information to apply to the pipe stream.

Attributes

Exceptions

pipeSecurity is null.

stream is a disconnected NamedPipeClientStream instance.

Applies to