Share via


GattDeviceService.Device Proprietà

Definizione

Ottiene l'oggetto BluetoothLEDevice che descrive il dispositivo associato all'oggetto GattDeviceService corrente.

Importante

L'API dispositivo è deprecata e potrebbe non essere disponibile nelle versioni future di Windows. Usare invece Sessione.

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

Valore della proprietà

Oggetto BluetoothLEDevice che descrive il dispositivo associato all'oggetto GattDeviceService corrente.

Attributi

Requisiti Windows

Funzionalità dell'app
bluetooth

Si applica a

Vedi anche