BluetoothUuidHelper 类

定义

一个帮助程序类,提供在蓝牙设备 UUID 和短 ID 之间转换的方法。

public ref class BluetoothUuidHelper abstract 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 BluetoothUuidHelper 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 static class BluetoothUuidHelper
Public Class BluetoothUuidHelper
继承
Object Platform::Object IInspectable BluetoothUuidHelper
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
bluetooth

方法

FromShortId(UInt32)

从短 ID 返回蓝牙设备 UUID。

TryGetShortId(Guid)

尝试从 UUID 获取短蓝牙设备 ID。

适用于