共用方式為


GattLocalService.CreateCharacteristicAsync 方法

定義

建立此本機服務的特性。

public:
 virtual IAsyncOperation<GattLocalCharacteristicResult ^> ^ CreateCharacteristicAsync(Platform::Guid characteristicUuid, GattLocalCharacteristicParameters ^ parameters) = CreateCharacteristicAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattLocalCharacteristicResult> CreateCharacteristicAsync(winrt::guid const& characteristicUuid, GattLocalCharacteristicParameters const& parameters);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattLocalCharacteristicResult> CreateCharacteristicAsync(Guid characteristicUuid, GattLocalCharacteristicParameters parameters);
function createCharacteristicAsync(characteristicUuid, parameters)
Public Function CreateCharacteristicAsync (characteristicUuid As Guid, parameters As GattLocalCharacteristicParameters) As IAsyncOperation(Of GattLocalCharacteristicResult)

參數

characteristicUuid
Guid

Platform::Guid

winrt::guid

特性 UUID。

parameters
GattLocalCharacteristicParameters

特性參數。

傳回

非同步作業

屬性

Windows 需求

應用程式功能
bluetooth

適用於