通过


GattServiceProviderTrigger 类

定义

构造可在后台保留 (GATT) 服务的泛型属性。

public ref class GattServiceProviderTrigger sealed : IBackgroundTrigger
/// [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 GattServiceProviderTrigger final : IBackgroundTrigger
[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 GattServiceProviderTrigger : IBackgroundTrigger
Public NotInheritable Class GattServiceProviderTrigger
Implements IBackgroundTrigger
继承
Object Platform::Object IInspectable GattServiceProviderTrigger
属性
实现

Windows 要求

要求 说明
设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

GATT 定义了一个分层数据结构,该结构公开给连接的蓝牙低功耗 (LE) 设备。

属性

名称 说明
AdvertisingParameters

获取广告参数,该参数控制无线电是否连接/可发现。

Service

获取与此触发器关联的服务。

TriggerId

获取触发器标识符。

方法

名称 说明
CreateAsync(String, Guid)

创建 GATT 提供程序服务。

适用于

另请参阅