Reads data from the port.
| Visual Basic .NET | Function Read(ByRef DataBuffer As IntPtr, ByVal BytesToRead As UInt32) As UInt32
|
|---|---|
| Visual C# | UInt32 Read(IntPtr DataBuffer, UInt32 BytesToRead);
|
DataBuffer
[in, out] The buffer that receives the data.
BytesToRead
[in] Variable that receives the number of bytes read from port.
Number of bytes read.
The method may throw exception. Use GetLastError method to get the error code.
| ftvspcErrorFailed | 1 | The operation has not been completed. |
|---|---|---|
| ftvspcErrorInvalidParameter | 2 | Invalid parameter. |