BluetoothDevice.DeviceId Property

Definition

Gets the device ID that came from the Windows.Devices.Enumeration.DeviceInformation.Id

public:
 property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
public string DeviceId { get; }
var string = bluetoothDevice.deviceId;
Public ReadOnly Property DeviceId As String

Property Value

String

Platform::String

winrt::hstring

The ID of the device.

Windows requirements

App capabilities
bluetooth

Applies to