GattDeviceService.GetDeviceSelectorFromShortId(UInt16) 메서드

정의

16비트 Bluetooth GATT 서비스 UUID에서 CreateWatcher 메서드에 사용할 적합한 AQS 필터 문자열을 만듭니다.

중요

GetDeviceSelectorFromShortId API는 더 이상 사용되지 않으며 이후 버전의 Windows에서는 사용할 수 없습니다. 대신 GetDeviceSelectorFromUuid를 사용합니다.

public:
 static Platform::String ^ GetDeviceSelectorFromShortId(unsigned short serviceShortId);
 static winrt::hstring GetDeviceSelectorFromShortId(uint16_t const& serviceShortId);
/// [Windows.Foundation.Metadata.Deprecated("Use GetDeviceSelectorFromUuid instead of GetDeviceSelectorFromShortId.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 static winrt::hstring GetDeviceSelectorFromShortId(uint16_t const& serviceShortId);
public static string GetDeviceSelectorFromShortId(ushort serviceShortId);
[Windows.Foundation.Metadata.Deprecated("Use GetDeviceSelectorFromUuid instead of GetDeviceSelectorFromShortId.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static string GetDeviceSelectorFromShortId(ushort serviceShortId);
function getDeviceSelectorFromShortId(serviceShortId)
Public Shared Function GetDeviceSelectorFromShortId (serviceShortId As UShort) As String

매개 변수

serviceShortId
UInt16

unsigned short

uint16_t

16비트 Bluetooth GATT 서비스 UUID.

반환

String

Platform::String

winrt::hstring

GATT 서비스 instance 경로를 검색하기 위해 CreateWatcher 메서드에 매개 변수로 전달할 수 있는 적합한 AQS 선택기 문자열

특성

Windows 요구 사항

앱 기능
bluetooth

적용 대상