GattServiceProvider.StartAdvertising 方法

定义

重载

StartAdvertising()

开始播发 GATT 服务。

StartAdvertising(GattServiceProviderAdvertisingParameters)

开始播发 GATT 服务。

StartAdvertising()

开始播发 GATT 服务。

public:
 virtual void StartAdvertising() = StartAdvertising;
/// [Windows.Foundation.Metadata.Overload("StartAdvertising")]
void StartAdvertising();
[Windows.Foundation.Metadata.Overload("StartAdvertising")]
public void StartAdvertising();
function startAdvertising()
Public Sub StartAdvertising ()
属性

Windows 要求

应用功能
bluetooth

适用于

StartAdvertising(GattServiceProviderAdvertisingParameters)

开始播发 GATT 服务。

public:
 virtual void StartAdvertising(GattServiceProviderAdvertisingParameters ^ parameters) = StartAdvertising;
/// [Windows.Foundation.Metadata.Overload("StartAdvertisingWithParameters")]
void StartAdvertising(GattServiceProviderAdvertisingParameters const& parameters);
[Windows.Foundation.Metadata.Overload("StartAdvertisingWithParameters")]
public void StartAdvertising(GattServiceProviderAdvertisingParameters parameters);
function startAdvertising(parameters)
Public Sub StartAdvertising (parameters As GattServiceProviderAdvertisingParameters)

参数

parameters
GattServiceProviderAdvertisingParameters

广告参数。

属性

Windows 要求

应用功能
bluetooth

适用于