共用方式為


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

屬性

適用於