Partager via


GattServiceProviderTrigger.CreateAsync(String, Guid) Méthode

Définition

Crée un service de fournisseur 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)

Paramètres

triggerId
String

Platform::String

winrt::hstring

Identificateur du déclencheur.

serviceUuid
Guid

Platform::Guid

winrt::guid

Identificateur universel unique du déclencheur.

Retours

Attendez l’opération asynchrone pour obtenir le GattServiceProviderTriggerResult.

Attributs

S’applique à