Language

SerialPort.ProductId Property

Definition

Return the product ID of this serial port if it is a USB device.

public int ProductId { [Android.Runtime.Register("getProductId", "()I", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getProductId", "()I", "", ApiSince=37)>]
member this.ProductId : int

Property Value

Return the product ID of this serial port if it is a USB device.

Attributes

Remarks

Return the product ID of this serial port if it is a USB device. Otherwise, it returns INVALID_ID.

Android reference for android.hardware.serial.SerialPort.getProductId.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to