GattDeviceService.Device Property

Definition

Gets the BluetoothLEDevice object describing the device associated with the current GattDeviceService object.

Important

The Device API is deprecated, and it may not be available in future versions of Windows. Instead, use Session.

public:
 property BluetoothLEDevice ^ Device { BluetoothLEDevice ^ get(); };
BluetoothLEDevice Device();
/// [get: Windows.Foundation.Metadata.Deprecated("Use Session instead of Device property.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
BluetoothLEDevice Device();
public BluetoothLEDevice Device { get; }
public BluetoothLEDevice Device { [Windows.Foundation.Metadata.Deprecated("Use Session instead of Device property.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")] get; }
var bluetoothLEDevice = gattDeviceService.device;
Public ReadOnly Property Device As BluetoothLEDevice

Property Value

The BluetoothLEDevice object describing the device associated with the current GattDeviceService object.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to

See also