PipeStream 构造函数

定义

初始化 PipeStream 类的新实例。Initializes a new instance of the PipeStream class.

重载

PipeStream(PipeDirection, Int32)

使用指定的 PipeStream 值和缓冲区大小初始化 PipeDirection 类的一个新实例。Initializes a new instance of the PipeStream class using the specified PipeDirection value and buffer size.

PipeStream(PipeDirection, PipeTransmissionMode, Int32)

使用指定的 PipeStreamPipeDirection 和缓冲区大小初始化 PipeTransmissionMode 类的一个新实例。Initializes a new instance of the PipeStream class using the specified PipeDirection, PipeTransmissionMode, and buffer size.

PipeStream(PipeDirection, Int32)

使用指定的 PipeStream 值和缓冲区大小初始化 PipeDirection 类的一个新实例。Initializes a new instance of the PipeStream class using the specified PipeDirection value and buffer size.

protected:
 PipeStream(System::IO::Pipes::PipeDirection direction, int bufferSize);
protected PipeStream (System.IO.Pipes.PipeDirection direction, int bufferSize);
new System.IO.Pipes.PipeStream : System.IO.Pipes.PipeDirection * int -> System.IO.Pipes.PipeStream
Protected Sub New (direction As PipeDirection, bufferSize As Integer)

参数

direction
PipeDirection

PipeDirection 值之一,指示管道对象的方向。One of the PipeDirection values that indicates the direction of the pipe object.

bufferSize
Int32

一个大于或等于 0 的正 Int32 值,指示缓冲区大小。A positive Int32 value greater than or equal to 0 that indicates the buffer size.

异常

direction 不是有效的 PipeDirection 值。direction is not a valid PipeDirection value.

- 或 --or- bufferSize 小于 0。bufferSize is less than 0.

注解

此构造函数使用 Byte的管道传输模式。This constructor uses a pipe transmission mode of Byte.

PipeStream(PipeDirection, PipeTransmissionMode, Int32)

使用指定的 PipeStreamPipeDirection 和缓冲区大小初始化 PipeTransmissionMode 类的一个新实例。Initializes a new instance of the PipeStream class using the specified PipeDirection, PipeTransmissionMode, and buffer size.

protected:
 PipeStream(System::IO::Pipes::PipeDirection direction, System::IO::Pipes::PipeTransmissionMode transmissionMode, int outBufferSize);
protected PipeStream (System.IO.Pipes.PipeDirection direction, System.IO.Pipes.PipeTransmissionMode transmissionMode, int outBufferSize);
new System.IO.Pipes.PipeStream : System.IO.Pipes.PipeDirection * System.IO.Pipes.PipeTransmissionMode * int -> System.IO.Pipes.PipeStream
Protected Sub New (direction As PipeDirection, transmissionMode As PipeTransmissionMode, outBufferSize As Integer)

参数

direction
PipeDirection

PipeDirection 值之一,指示管道对象的方向。One of the PipeDirection values that indicates the direction of the pipe object.

transmissionMode
PipeTransmissionMode

PipeTransmissionMode 值之一,指示管道对象的传输模式。One of the PipeTransmissionMode values that indicates the transmission mode of the pipe object.

outBufferSize
Int32

一个大于或等于 0 的正 Int32 值,指示缓冲区大小。A positive Int32 value greater than or equal to 0 that indicates the buffer size.

异常

direction 不是有效的 PipeDirection 值。direction is not a valid PipeDirection value.

- 或 --or- transmissionMode 不是有效的 PipeTransmissionMode 值。transmissionMode is not a valid PipeTransmissionMode value.

- 或 --or- bufferSize 小于 0。bufferSize is less than 0.

适用于