PipeStream Constructor (PipeDirection, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the PipeStream class using the specified PipeDirection value and buffer size.

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

protected PipeStream(
	PipeDirection direction,
	int bufferSize
)

Parameters

direction
Type: System.IO.Pipes.PipeDirection

One of the PipeDirection values that indicates the direction of the pipe object.

bufferSize
Type: System.Int32

A positive Int32 value greater than or equal to 0 that indicates the buffer size.

Exception Condition
ArgumentOutOfRangeException

direction is not a valid PipeDirection value.

-or-

bufferSize is less than 0.

This constructor uses a pipe transmission mode of Byte.

.NET Framework
Available since 3.5
Return to top
Show: