PipeStream Constructors

Definition

Initializes a new instance of the PipeStream class.

Overloads

PipeStream(PipeDirection, Int32)

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

PipeStream(PipeDirection, PipeTransmissionMode, Int32)

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

PipeStream(PipeDirection, Int32)

Source:
PipeStream.cs
Source:
PipeStream.cs
Source:
PipeStream.cs

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

C#
protected PipeStream(System.IO.Pipes.PipeDirection direction, int bufferSize);

Parameters

direction
PipeDirection

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

bufferSize
Int32

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

Exceptions

direction is not a valid PipeDirection value.

-or-

bufferSize is less than 0.

Remarks

This constructor uses a pipe transmission mode of Byte.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

PipeStream(PipeDirection, PipeTransmissionMode, Int32)

Source:
PipeStream.cs
Source:
PipeStream.cs
Source:
PipeStream.cs

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

C#
protected PipeStream(System.IO.Pipes.PipeDirection direction, System.IO.Pipes.PipeTransmissionMode transmissionMode, int outBufferSize);

Parameters

direction
PipeDirection

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

transmissionMode
PipeTransmissionMode

One of the PipeTransmissionMode values that indicates the transmission mode of the pipe object.

outBufferSize
Int32

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

Exceptions

direction is not a valid PipeDirection value.

-or-

transmissionMode is not a valid PipeTransmissionMode value.

-or-

outBufferSize is less than 0.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1