Udostępnij za pośrednictwem


GattServiceProviderTrigger.CreateAsync(String, Guid) Method

Definition

Creates a GATT provider service.

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)

Parameters

triggerId
String

Platform::String

winrt::hstring

The identifier for the trigger.

serviceUuid
Guid

Platform::Guid

winrt::guid

The universally unique identifier for the trigger.

Returns

Await the asynchronous operation to get the GattServiceProviderTriggerResult.

Attributes

Applies to