System.IO.Pipes.PipeStream.InitializeHandle Method

Initializes a System.IO.Pipes.PipeStream object from the specified Microsoft.Win32.SafeHandles.SafePipeHandle object.

Syntax

protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync)

Parameters

handle
The Microsoft.Win32.SafeHandles.SafePipeHandle object of the pipe to initialize.
isExposed
true to expose the handle; otherwise, false.
isAsync
true to indicate that the handle was opened asynchronously; otherwise, false.

Remarks

If the pipe is in a connected state, this method also sets the PipeStream.IsConnected property to true.

Requirements

Namespace: System.IO.Pipes
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0