Closes a service connection, using a ServiceHandle.
public bool Close(ServiceHandle serviceHandle);
Parameters |
Description |
ServiceHandle serviceHandle |
Service handle to be closed |
true indicates success
private void CloseCommunication(Smartpen pen, ServiceHandle serviceHandle) { try { pen.Close(serviceHandle); } catch (Exception e) { HandleError(e); } }