GattDeviceService.Device Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|