Condividi tramite


GattServiceProviderTrigger.CreateAsync(String, Guid) Metodo

Definizione

Crea un servizio provider 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)

Parametri

triggerId
String

Platform::String

winrt::hstring

Identificatore del trigger.

serviceUuid
Guid

Platform::Guid

winrt::guid

Identificatore universale univoco per il trigger.

Restituisce

Attendere l'operazione asincrona per ottenere GattServiceProviderTriggerResult.

Attributi

Si applica a