SerialPortOnFaulted Method |
Raises the Faulted event.
Namespace: ZylSoft.SerialAssembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.83.8519.34486
Syntax protected virtual void OnFaulted(
ConnectionEventArgs e
)
Protected Overridable Sub OnFaulted (
e As ConnectionEventArgs
)
protected:
virtual void OnFaulted(
ConnectionEventArgs^ e
)
abstract OnFaulted :
e : ConnectionEventArgs -> unit
override OnFaulted :
e : ConnectionEventArgs -> unit
protected void OnFaulted(
ConnectionEventArgs e
)
protected function OnFaulted(
e : ConnectionEventArgs
)
PROTECTED VIRTUAL METHOD OnFaulted(
e AS ConnectionEventArgs
) AS VOID
No code example is currently available or this language may not be supported.
Parameters
- e ConnectionEventArgs
-
A ConnectionEventArgs that contains the event data.
Remarks
Raising an event invokes the event handler through a delegate.
The OnFaulted method also allows derived classes to handle the event without
attaching a delegate. This is the preferred technique for handling the event
in a derived class.
Notes to Inheritors: When overriding OnFaulted in a derived class, be sure to
call the base class's OnFaulted method so that registered delegates
receive the event.
See Also