BluetoothDeviceId 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示藍牙裝置識別碼。
public ref class BluetoothDeviceId sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothDeviceId final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothDeviceId
Public NotInheritable Class BluetoothDeviceId
- 繼承
- 屬性
Windows 需求
| 規格需求 | Description |
|---|---|
| 裝置系列 |
Windows 10 Creators Update (已於 10.0.15063.0 引進)
|
| API contract |
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
|
| 應用程式功能 |
bluetooth
|
備註
版本歷程記錄
| Windows 版本 | SDK 版本 | 新增值 |
|---|---|---|
| 1709 | 16299 | FromId |
屬性
| 名稱 | Description |
|---|---|
| Id |
取得藍牙裝置識別碼。 |
| IsClassicDevice |
取得布林值,指出這是否為傳統裝置。 |
| IsLowEnergyDevice |
取得布林值,指出這是否為 LowEnergy 裝置。 |
方法
| 名稱 | Description |
|---|---|
| FromId(String) |
從裝置識別碼建立 BluetoothDeviceId 物件。 |