Occurs when the serial port communication is faulted.
Namespace: ZylSoft.GsmAssembly: ZylGsm (in ZylGsm.dll) Version: 1.2.0.21451
XMLNS for XAML: Not mapped to an xmlns.
Syntaxpublic event EventHandler<ConnectionEventArgs> Faulted
Public Event Faulted As EventHandler(Of ConnectionEventArgs)
Dim instance As GsmModem
Dim handler As EventHandler(Of ConnectionEventArgs)
AddHandler instance.Faulted, handler
public:
event EventHandler<ConnectionEventArgs^>^ Faulted {
void add (EventHandler<ConnectionEventArgs^>^ value);
void remove (EventHandler<ConnectionEventArgs^>^ value);
}member Faulted : IEvent<EventHandler<ConnectionEventArgs>,
ConnectionEventArgs>Value
EventHandlerConnectionEventArgs
Example
When you unplug an USB device which communicates on a virtual serial port.
Do not try to reconnect from the Faulted or Disconnected event.
Set AutoReconnect property to true, to automatically reconnect after a Faulted event, or
use the property IsFaulted, which is automatically set to true after a Faulted event and use a timer which checks periodically this property
and reconnect from the Ticked event when IsFaulted is true.
See Also