PipeStream.ReadByte Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads a byte from a pipe.
public:
override int ReadByte();
public override int ReadByte ();
[System.Security.SecurityCritical]
public override int ReadByte ();
override this.ReadByte : unit -> int
[<System.Security.SecurityCritical>]
override this.ReadByte : unit -> int
Public Overrides Function ReadByte () As Integer
Returns
The byte, cast to Int32, or -1 indicates the end of the stream (the pipe has been closed).
- Attributes
Exceptions
The pipe is closed.
The pipe does not support read operations.
The pipe is disconnected, waiting to connect, or the handle has not been set.
Any I/O error occurred.
Remarks
Use the CanRead property to determine whether the current PipeStream object supports read operations.
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk