RfcommServiceProvider.StartAdvertising Method

Definition

Overloads

StartAdvertising(StreamSocketListener)

Begins advertising the SDP attributes.

StartAdvertising(StreamSocketListener, Boolean)

Begins advertising the SDP attributes.

StartAdvertising(StreamSocketListener)

Begins advertising the SDP attributes.

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)

Parameters

listener
StreamSocketListener

The StreamSocketListener that is listening for incoming connections.

Windows requirements

App capabilities
bluetooth

See also

Applies to

StartAdvertising(StreamSocketListener, Boolean)

Begins advertising the SDP attributes.

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)

Parameters

listener
StreamSocketListener

The StreamSocketListener that is listening for incoming connections.

radioDiscoverable
Boolean

bool

Indicates whether the radio is discoverable (true) or not (false).

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)
App capabilities
bluetooth

See also

Applies to