|
PortController.NET
Close Method
Closes the communications port.
Syntax
[Visual Basic]
object.Close()
[C#]
object.Close()
[C++]
object->Close()
Parameters
object
An object expression that evaluates to a PortController object.
Return Value
None
Remarks
- If Close() is called on an unopened port, no exception is thrown and execution
will continue normally. This means that it is always safe to call Close(), even when there
is no guarantee that the port is open.
- This method is called automatically when the object is destroyed.
Errors
If the port is open and unable to be closed for any reason, the
PortController will throw an "Unexpected Error" exception
Example
[Visual Basic]
myPortController.Close()
[C#]
myPortController.Close();
[C++]
myPortController->Close();
See Also
IsOpen property | Open method
|