![](/img/trans.png)
[英]Can I run an adb shell command in C# and not have it interrupted when I unplug the USB cable?
[英]c# unplug the usb when saving data to it, how to handle this exception
我有一個將數據保存到USB驅動器的ac#程序,但是如果未插入USB,將導致崩潰。 有什么好的方法可以處理此異常? 謝謝!
您正在使用的代碼可能會引發異常,您應該能夠使用try / catch塊捕獲並做出相應的響應。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.