Gets or sets an identifier for the device.
| C# | Visual Basic |
[ObsoleteAttribute("Use the Address property to access the device Address.", false)] public byte[] DeviceID { get; set; }
<ObsoleteAttribute("Use the Address property to access the device Address.", _ False)> _ Public Property DeviceID As Byte()
| Exception | Condition |
|---|---|
| ArgumentNullException |
The specified byte array is null (Nothing in Visual Basic).
|
| ArgumentOutOfRangeException |
The specified byte array is not four bytes long.
|