PipeStream.InitializeHandle Method (SafePipeHandle, Boolean, Boolean)

 

Initializes a PipeStream object from the specified SafePipeHandle object.

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

[SecurityCriticalAttribute]
protected void InitializeHandle(
	SafePipeHandle handle,
	bool isExposed,
	bool isAsync
)

Parameters

handle
Type: Microsoft.Win32.SafeHandles.SafePipeHandle

The SafePipeHandle object of the pipe to initialize.

isExposed
Type: System.Boolean

true to expose the handle; otherwise, false.

isAsync
Type: System.Boolean

true to indicate that the handle was opened asynchronously; otherwise, false.

Exception Condition
IOException

A handle cannot be bound to the pipe.

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

.NET Framework
Available since 3.5
Return to top
Show: