Detaches from virtual serial port.
| Visual Basic | Sub Detach()
|
|---|---|
| Delphi | procedure Detach();
|
| Visual C++ (MFC) | void Detach();
|
| Visual C++ (#import) | void Detach();
|
None.
The method may throw exception. Use GetLastError method to get the error code.
| ftvspcErrorFailed | 1 | The operation has not been completed. |
|---|---|---|
| ftvspcErrorInvalidParameter | 2 | Invalid parameter. |