Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents the method that will handle the data received event of a SerialPort object.
Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware.SerialPort (in Microsoft.SPOT.Hardware.SerialPort.dll)
Syntax
'Declaration
Public Event DataReceived As SerialDataReceivedEventHandler
public event SerialDataReceivedEventHandler DataReceived
public:
event SerialDataReceivedEventHandler^ DataReceived {
void add (SerialDataReceivedEventHandler^ value);
void remove (SerialDataReceivedEventHandler^ value);
}
member DataReceived : IEvent<SerialDataReceivedEventHandler,
SerialDataReceivedEventArgs>
JScript does not support events.
Remarks
Serial received events can be caused by any of the items in the SerialData enumeration. Because the operating system determines whether to raise this event or not, not all parity errors may be reported.
DataReceived and ErrorReceived events may be called out of order, and there may be a slight delay between when the underlying stream reports the error and when the event handler is executed. Only one event handler can execute at a time.
The DataReceived event is not guaranteed to be raised for every byte received. Use the BytesToRead property to determine how much data is left to be read in the buffer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.