GattServiceProvider.CreateAsync(Guid) Method

Definition

Creates a new GATT service with the specified 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

The service UUID.

Returns

IAsyncOperation<GattServiceProviderResult>

An asynchronous operation that completes with a GattServiceProviderResult object.

Attributes

Windows 10 requirements

App capabilities
bluetooth

Applies to