Compartilhar via


GattServiceProviderTrigger.CreateAsync(String, Guid) Método

Definição

Cria um serviço de provedor 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)

Parâmetros

triggerId
String

Platform::String

winrt::hstring

O identificador do gatilho.

serviceUuid
Guid

Platform::Guid

winrt::guid

O identificador universalmente exclusivo para o gatilho.

Retornos

Aguarde a operação assíncrona para obter o GattServiceProviderTriggerResult.

Atributos

Aplica-se a