BufferedStream.WriteByte(Byte) 方法

定義

將位元組寫入緩衝資料流中的目前位置。Writes a byte to the current position in the buffered stream.

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

參數

value
Byte

要寫入資料流的位元組。A byte to write to the stream.

例外狀況

資料流不支援寫入。The stream does not support writing.

valuenullvalue is null.

關閉資料流後呼叫了方法。Methods were called after the stream was closed.

備註

使用 CanWrite 屬性來判斷目前的實例是否支援寫入。Use the CanWrite property to determine whether the current instance supports writing.

適用於

另請參閱