The foreign secretary was asked if he raised the issue of spying accusations in Parliament during a visit to China.