PipeStream.WriteByte(Byte) 方法

定义

将字节写入当前流。Writes a byte to the current stream.

public:
 override void WriteByte(System::Byte value);
[System.Security.SecurityCritical]
public override void WriteByte (byte value);
override this.WriteByte : byte -> unit
Public Overrides Sub WriteByte (value As Byte)

参数

value
Byte

要写入流中的字节。The byte to write to the stream.

属性

异常

管道已关闭。The pipe is closed.

管道不支持写入操作。The pipe does not support write operations.

管道已断开连接,正在等待连接,或尚未设置句柄。The pipe is disconnected, waiting to connect, or the handle has not been set.

管道已损坏或出现其他 I/O 错误。The pipe is broken or another I/O error occurred.

注解

使用 CanWrite 属性来确定当前 PipeStream 对象是否支持写入操作。Use the CanWrite property to determine whether the current PipeStream object supports write operations.

适用于