RfcommServiceProvider.StartAdvertising 方法

定义

重载

StartAdvertising(StreamSocketListener)

开始播发 SDP 属性。

StartAdvertising(StreamSocketListener, Boolean)

开始播发 SDP 属性。

StartAdvertising(StreamSocketListener)

开始播发 SDP 属性。

public:
 virtual void StartAdvertising(StreamSocketListener ^ listener) = StartAdvertising;
void StartAdvertising(StreamSocketListener const& listener);
public void StartAdvertising(StreamSocketListener listener);
function startAdvertising(listener)
Public Sub StartAdvertising (listener As StreamSocketListener)

参数

listener
StreamSocketListener

正在侦听传入连接的 StreamSocketListener。

Windows 要求

应用功能
bluetooth

另请参阅

适用于

StartAdvertising(StreamSocketListener, Boolean)

开始播发 SDP 属性。

public:
 virtual void StartAdvertising(StreamSocketListener ^ listener, bool radioDiscoverable) = StartAdvertising;
/// [Windows.Foundation.Metadata.Overload("StartAdvertisingWithRadioDiscoverability")]
void StartAdvertising(StreamSocketListener const& listener, bool const& radioDiscoverable);
[Windows.Foundation.Metadata.Overload("StartAdvertisingWithRadioDiscoverability")]
public void StartAdvertising(StreamSocketListener listener, bool radioDiscoverable);
function startAdvertising(listener, radioDiscoverable)
Public Sub StartAdvertising (listener As StreamSocketListener, radioDiscoverable As Boolean)

参数

listener
StreamSocketListener

正在侦听传入连接的 StreamSocketListener。

radioDiscoverable
Boolean

bool

指示无线电是否可发现 (true) (false) 。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
应用功能
bluetooth

另请参阅

适用于