ErrorReceivedEventArgs
ErrorReceivedEventArgs
ErrorReceivedEventArgs
ErrorReceivedEventArgs
Class
Definition
Represents the object that is passed as a parameter to the event handler that is invoked when error occurs on the serial port.
public : sealed class ErrorReceivedEventArgs : IErrorReceivedEventArgspublic sealed class ErrorReceivedEventArgs : IErrorReceivedEventArgsPublic NotInheritable Class ErrorReceivedEventArgs Implements IErrorReceivedEventArgs// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
ErrorReceivedEventArgs is used to determine the type of error condition. When error occurs on the port, the previously registered ErrorReceived event handler is invoked. That event handler's parameter is a ErrorReceivedEventArgs object. After the event handler is invoked, you can determine the error condition by using the Error property.
Properties
Error Error Error Error
Gets the character type received that caused the event on the serial port.
public : SerialError Error { get; }public SerialError Error { get; }Public ReadOnly Property Error As SerialError// You can use this property in JavaScript.
One of the values defined in the SerialError enumeration.