GattServiceProvider.CreateAsync(Guid) Method

Definition

Creates a new GATT service with the specified serviceUuid

public:
 static IAsyncOperation<GattServiceProviderResult ^> ^ CreateAsync(Platform::Guid serviceUuid);
/// [Windows.Foundation.Metadata.Overload("CreateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<GattServiceProviderResult> CreateAsync(winrt::guid const& serviceUuid);
[Windows.Foundation.Metadata.Overload("CreateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<GattServiceProviderResult> CreateAsync(Guid serviceUuid);
function createAsync(serviceUuid)
Public Shared Function CreateAsync (serviceUuid As Guid) As IAsyncOperation(Of GattServiceProviderResult)

Parameters

serviceUuid
Guid

Platform::Guid

winrt::guid

The service UUID.

Returns

An asynchronous operation that completes with a GattServiceProviderResult object.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to