Close Method
Close the communications port.
Syntax
Visual Basic
object.Close
Visual C++
object.Close()
Delphi
object.Close
| Part
| Description |
| object |
An object expression that evaluates to a PortController object. |
Example
Visual Basic
myPortController.Close
Visual C++
m_myPortController.Close();
Delphi
myPortController.Close;
Remarks
If Close() is called on an unopened port, no exception is thrown and execution
will continue normally.
This method is called automatically when the object is destroyed.
Returns
Nothing
Errors
If the port is open and unable to be closed for any reason, the
PortController will throw an "Unexpected Error" exception
See Also
Open()
|