共用方式為


BluetoothUuidHelper 類別

定義

協助程式類別,提供在藍牙裝置 UUID 與簡短識別碼之間轉換的方法。

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)

從簡短識別碼傳回藍牙裝置 UUID。

TryGetShortId(Guid)

嘗試從 UUID 取得簡短藍牙裝置識別碼。

適用於