다음을 통해 공유


BluetoothLEDevice.GetGattService(Guid) 메서드

정의

지정된 서비스 ID를 사용하여 GATT 서비스를 반환합니다.

중요

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

public:
 virtual GattDeviceService ^ GetGattService(Platform::Guid serviceUuid) = GetGattService;
GattDeviceService GetGattService(winrt::guid const& serviceUuid);
/// [Windows.Foundation.Metadata.Deprecated("Use GetGattServicesForUuidAsync instead of GetGattService.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
GattDeviceService GetGattService(winrt::guid const& serviceUuid);
public GattDeviceService GetGattService(Guid serviceUuid);
[Windows.Foundation.Metadata.Deprecated("Use GetGattServicesForUuidAsync instead of GetGattService.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public GattDeviceService GetGattService(Guid serviceUuid);
function getGattService(serviceUuid)
Public Function GetGattService (serviceUuid As Guid) As GattDeviceService

매개 변수

serviceUuid
Guid

Platform::Guid

winrt::guid

GATT 서비스의 서비스 ID입니다.

반환

지정된 서비스 ID로 표시되는 GATT 서비스입니다.

특성

Windows 요구 사항

앱 기능
bluetooth

적용 대상