GattServiceProviderTrigger.CreateAsync(String, Guid) 方法

定义

创建 GATT 提供程序服务。

public:
 static IAsyncOperation<GattServiceProviderTriggerResult ^> ^ CreateAsync(Platform::String ^ triggerId, Platform::Guid serviceUuid);
/// [Windows.Foundation.Metadata.Overload("CreateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<GattServiceProviderTriggerResult> CreateAsync(winrt::hstring const& triggerId, winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("CreateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<GattServiceProviderTriggerResult> CreateAsync(string triggerId, Guid serviceUuid);
function createAsync(triggerId, serviceUuid)
Public Shared Function CreateAsync (triggerId As String, serviceUuid As Guid) As IAsyncOperation(Of GattServiceProviderTriggerResult)

参数

triggerId
String

Platform::String

winrt::hstring

触发器的标识符。

serviceUuid
Guid

Platform::Guid

winrt::guid

触发器的通用唯一标识符。

返回

等待异步操作以获取 GattServiceProviderTriggerResult

属性

适用于