The Read method reads buffered data from a virtual port.
object.Read(BytesToRead, [Timeout], [BytesRead]) as String
CString object.Read(LONG BytesToRead, LONG Timeout, LONG* BytesRead)
function object.Read(BytesToRead: Integer; Timeout: Integer; out pBytesRead: Integer): WideString;
| Parameter | Description |
|---|---|
| BytesToRead | [in] Number of bytes to read. |
| Timeout | [in] Time (in milliseconds) to wait for write operation completion. |
| BytesRead | [out] A pointer to the variable that receives the number of bytes read. |
The Read method returns string filled by read bytes.
The Read method may throw the following exceptions: