共用方式為


UsbDevice.InterfaceCount 屬性

定義

傳回此裝置包含的 UsbInterfaces 數目。

public virtual int InterfaceCount { [Android.Runtime.Register("getInterfaceCount", "()I", "GetGetInterfaceCountHandler")] get; }
[<get: Android.Runtime.Register("getInterfaceCount", "()I", "GetGetInterfaceCountHandler")>]
member this.InterfaceCount : int

屬性值

介面數目

屬性

備註

傳回此裝置包含的 UsbInterfaces 數目。 針對具有多個設定的裝置,您可能想要改用 UsbConfiguration#getInterfaceCount

android.hardware.usb.UsbDevice.getInterfaceCount()Java 檔。

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

適用於