Partager via


PipesAclExtensions.SetAccessControl(PipeStream, PipeSecurity) Méthode

Définition

Change les attributs de sécurité d’un flux de canal existant.

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)

Paramètres

stream
PipeStream

Flux de canal existant.

pipeSecurity
PipeSecurity

Informations de sécurité à appliquer au flux de canal.

Attributs

Exceptions

pipeSecurity a la valeur null.

stream est une instance NamedPipeClientStream déconnectée.

S’applique à