public bool IsOpen() { if (disposed) { throw new ObjectDisposedException(GetType().Name); } bool bRet = false; try { bool bRetSpecified = false; serviceClient.IsServiceAvailable("WinMobileClient", out bRet, out bRetSpecified); } catch (System.Exception) { bRet = false; } return(bRet && bIsPortOpened); }