Delen via


DeviceConnectionChangeTrigger.DeviceId Property

Definition

Gets the device Id associated with the device.

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

Property Value

String

Platform::String

winrt::hstring

The device Id associated with the device.

Remarks

When monitoring Bluetooth LE devices, the DeviceId must reference an interface on the Bluetooth LE device object. The device Id in this case can be the values returned by the GetDeviceSelector. Alternatively, the DeviceId can reference an interface on a GattDeviceService object and valid values for the device Id is any value returned by GetDeviceSelectorFromShortId or GetDeviceSelectorFromUuid.

When monitoring other Bluetooth devices, the device Id can be any value returned by the GetDeviceSelector on RfCommDeviceService or BluetoothDevice.

Applies to