Freigeben über


GattLocalService Klasse

Definition

Diese Klasse stellt einen lokalen GATT-Dienst dar.

public ref class GattLocalService sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattLocalService final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GattLocalService final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattLocalService
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GattLocalService
Public NotInheritable Class GattLocalService
Vererbung
Object Platform::Object IInspectable GattLocalService
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)
App-Funktionen
bluetooth

Eigenschaften

Characteristics

Ruft eine Vektorliste der für diesen lokalen Dienst verfügbaren Merkmale ab.

Uuid

Ruft die lokale Dienst-UUID ab.

Methoden

CreateCharacteristicAsync(Guid, GattLocalCharacteristicParameters)

Erstellt ein Merkmal für diesen lokalen Dienst.

Gilt für: