GattDeviceService.Device 속성

정의

현재 GattDeviceService 개체와 연결된 디바이스를 설명하는 BluetoothLEDevice 개체를 가져옵니다.

중요

디바이스 API는 더 이상 사용되지 않으며 이후 버전의 Windows에서는 사용할 수 없습니다. 대신 세션을 사용합니다.

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

속성 값

현재 GattDeviceService 개체와 연결된 디바이스를 설명하는 BluetoothLEDevice 개체입니다.

특성

Windows 요구 사항

앱 기능
bluetooth

적용 대상

추가 정보