public int GetFoupLocation(int nFoupBarCode, out int nDevID, out int nDevType) { int nRet = 0; LocFoup location; nDevID = 0; nDevType = 0; try { location = remote.GetFoup(nFoupBarCode); nDevID = location.nDevID; nDevType = location.nLocType; } catch (System.Exception /*ex*/) { nRet = -1; } return(nRet); }