此代码;
GeoCoordinateWatcher watcher = new GeoCoordinateWatcher();
watcher.DesiredAccuracy = GeoPositionAccuracy.High;
...失败:“无法将属性或索引器‘System.Device.Location.GeoCoordinateWatcher.DesiredAccuracy’分配给——它是只读的”
为什么会DesiredAccuracy
是只读的?如果真是这样,它应该被命名Accuracy
,或者也许AttemptedAccuracy
,但不是DesiredAccuracy
。