GattServiceProvider.CreateAsync(Guid) 方法

定义

使用指定的 serviceUuid 创建新的 GATT 服务

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)

参数

serviceUuid
Guid

Platform::Guid

winrt::guid

服务 UUID。

返回

使用 GattServiceProviderResult 对象完成的异步操作。

属性

Windows 要求

应用功能
bluetooth

适用于