GattDeviceService.GetCharacteristics(Guid) 메서드

정의

지정된 UUID로 식별되고 이 GattDeviceService instance 속하는 특성의 벡터를 반환합니다.

중요

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

public:
 virtual IVectorView<GattCharacteristic ^> ^ GetCharacteristics(Platform::Guid characteristicUuid) = GetCharacteristics;
IVectorView<GattCharacteristic> GetCharacteristics(winrt::guid const& characteristicUuid);
/// [Windows.Foundation.Metadata.Deprecated("Use GetCharacteristicsForUuidAsync instead of GetCharacteristics.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IVectorView<GattCharacteristic> GetCharacteristics(winrt::guid const& characteristicUuid);
public IReadOnlyList<GattCharacteristic> GetCharacteristics(Guid characteristicUuid);
[Windows.Foundation.Metadata.Deprecated("Use GetCharacteristicsForUuidAsync instead of GetCharacteristics.  For more information, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<GattCharacteristic> GetCharacteristics(Guid characteristicUuid);
function getCharacteristics(characteristicUuid)
Public Function GetCharacteristics (characteristicUuid As Guid) As IReadOnlyList(Of GattCharacteristic)

매개 변수

characteristicUuid
Guid

Platform::Guid

winrt::guid

검색할 특성에 대한 UUID입니다.

반환

UUID가 characteristicUuid와 일치하는 GattCharacteristic 개체의 벡터입니다.

특성

Windows 요구 사항

앱 기능
bluetooth

설명

단일 앱만 단일 서비스에 액세스할 수 있습니다. 한 앱이 GATT 알림 트리거를 등록한 경우 이 메서드는 하위 앱이 이후에 이 API를 호출하는 다른 모든 앱에 대해 예외를 throw합니다.

적용 대상