GattServiceProvider.CreateAsync(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|