Close Method

Closes previously opened communication port.

Syntax

Visual Basic
Sub Close() 
Visual C++ (MFC)
void Close();
Visual C++ (#import)
void Close();

Parameters

None.

Remarks

1) If port is not open Close method does not throw any exception.
2) Port will be closed automatically on object destruction.