共用方式為


MtpDevice.DeviceId 屬性

定義

傳回USB裝置的USB標識碼。

public int DeviceId { [Android.Runtime.Register("getDeviceId", "()I", "")] get; }
[<get: Android.Runtime.Register("getDeviceId", "()I", "")>]
member this.DeviceId : int

屬性值

裝置標識碼

屬性

備註

傳回USB裝置的USB標識碼。 這會傳回與裝置的 相同值android.hardware.usb.UsbDevice#getDeviceIdandroid.hardware.usb.UsbDevice

android.mtp.MtpDevice.getDeviceId()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於