RfcommServiceProvider RfcommServiceProvider RfcommServiceProvider RfcommServiceProvider RfcommServiceProvider Class

Definition

Represents an instance of a local RFCOMM service.

public : sealed class RfcommServiceProvider
struct winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommServiceProvider
public sealed class RfcommServiceProvider
Public NotInheritable Class RfcommServiceProvider
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

Remarks

Version history

Windows version SDK version Value added
1511 10586 StartAdvertising(StreamSocketListener,Boolean)

Properties

SdpRawAttributes SdpRawAttributes SdpRawAttributes SdpRawAttributes SdpRawAttributes

Gets a collection of SDP attributes for advertising.

ServiceId ServiceId ServiceId ServiceId ServiceId

Gets the RfcommServiceId of this local RFCOMM service instance.

Methods

CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId) CreateAsync(RfcommServiceId)

Gets a RfcommServiceProvider object from a DeviceInformation Id for a RFCOMM service instance.

StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener) StartAdvertising(StreamSocketListener)

Begins advertising the SDP attributes.

StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean) StartAdvertising(StreamSocketListener, Boolean)

Begins advertising the SDP attributes.

StopAdvertising() StopAdvertising() StopAdvertising() StopAdvertising() StopAdvertising()

Stops advertising the SDP attributes.