UiAutomation.ExecuteShellCommand(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
執行一個殼牌指令。
[Android.Runtime.Register("executeShellCommand", "(Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")]
public Android.OS.ParcelFileDescriptor? ExecuteShellCommand(string? command);
[<Android.Runtime.Register("executeShellCommand", "(Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")>]
member this.ExecuteShellCommand : string -> Android.OS.ParcelFileDescriptor
參數
- command
- String
要執行的命令。
傳回
一個標準輸出串流的檔案描述符。
- 屬性
備註
執行一個殼牌指令。 此方法回傳一個指向標準輸出串流的檔案描述符。 指令執行類似於從連接裝置的主機執行「adb shell <指令>」。 注意:閱讀完成後,您有責任關閉回傳檔案描述符。
Android 參考資料。android.app.UiAutomation.executeShellCommand
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。