BluetoothUuidHelper.TryGetShortId(Guid) 方法

定义

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

public:
 static IReference<unsigned int> ^ TryGetShortId(Platform::Guid uuid);
 static IReference<uint32_t> TryGetShortId(winrt::guid const& uuid);
public static System.Nullable<uint> TryGetShortId(Guid uuid);
function tryGetShortId(uuid)
Public Shared Function TryGetShortId (uuid As Guid) As Nullable(Of UInteger)

参数

uuid
Guid

Platform::Guid

winrt::guid

UUID。

返回

IReference<UInt32>

Nullable<UInt32>

Windows.Foundation.IReference

IReference<uint32_t>

返回短 ID。

Windows 要求

应用功能
bluetooth

适用于