Partager via


GattDeviceService.ConvertShortIdToUuid(UInt16) Méthode

Définition

Convertit un ID court défini par Bluetooth SIG en un UUID GATT complet.

Important

L’API ConvertShortIdToUuid est déconseillée et peut ne pas être disponible dans les versions ultérieures de Windows. Utilisez plutôt BluetoothUuidHelper.FromShortId.

public:
 static Platform::Guid ConvertShortIdToUuid(unsigned short shortId);
 static winrt::guid ConvertShortIdToUuid(uint16_t const& shortId);
/// [Windows.Foundation.Metadata.Deprecated("Use BluetoothUuidHelper instead of ConvertShortIdToUuid.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 static winrt::guid ConvertShortIdToUuid(uint16_t const& shortId);
public static Guid ConvertShortIdToUuid(ushort shortId);
[Windows.Foundation.Metadata.Deprecated("Use BluetoothUuidHelper instead of ConvertShortIdToUuid.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static Guid ConvertShortIdToUuid(ushort shortId);
function convertShortIdToUuid(shortId)
Public Shared Function ConvertShortIdToUuid (shortId As UShort) As Guid

Paramètres

shortId
UInt16

unsigned short

uint16_t

UUID du service GATT Bluetooth 16 bits.

Retours

Guid

Platform::Guid

winrt::guid

UUID du service GATT 128 bits correspondant, qui identifie ce service de manière unique.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
bluetooth

S’applique à