GattDeviceService.Device 屬性

定義

取得 BluetoothLEDevice 物件,描述與目前 GattDeviceService 物件相關聯的裝置。

重要

裝置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

屬性值

BluetoothLEDevice物件,描述與目前GattDeviceService物件相關聯的裝置。

屬性

Windows 需求

應用程式功能
bluetooth

適用於

另請參閱