UsbDevice.DeviceId 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳裝置唯一的整數 ID。
public virtual int DeviceId { [Android.Runtime.Register("getDeviceId", "()I", "GetGetDeviceIdHandler")] get; }
[<get: Android.Runtime.Register("getDeviceId", "()I", "GetGetDeviceIdHandler")>]
member this.DeviceId : int
屬性值
裝置識別碼
- 屬性
備註
回傳裝置唯一的整數 ID。 這對於想用整數表示裝置而非裝置名稱的客戶來說,是個方便。 ID 不會在 USB 斷線後持續存在。
Java 文件 android.hardware.usb.UsbDevice.getDeviceId()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。