Rfcomm​Service​Provider Rfcomm​Service​Provider Rfcomm​Service​Provider Rfcomm​Service​Provider Class

Definition

Represents an instance of a local RFCOMM service.

public : sealed class RfcommServiceProvider : IRfcommServiceProvider, IRfcommServiceProvider2public sealed class RfcommServiceProvider : IRfcommServiceProvider, IRfcommServiceProvider2Public NotInheritable Class RfcommServiceProvider Implements IRfcommServiceProvider, IRfcommServiceProvider2// You can use this class in JavaScript.
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)

Properties

SdpRawAttributes SdpRawAttributes SdpRawAttributes SdpRawAttributes

Gets a collection of SDP attributes for advertising.

public : IMap<uint, IBuffer> SdpRawAttributes { get; }public IDictionary<uint, IBuffer> SdpRawAttributes { get; }Public ReadOnly Property SdpRawAttributes As IDictionary<uint, IBuffer>// You can use this property in JavaScript.
Value
IMap<unsigned short, IBuffer> IDictionary<uint, IBuffer> IDictionary<uint, IBuffer> IDictionary<uint, IBuffer>

The collection of SDP attributes for advertising.

ServiceId ServiceId ServiceId ServiceId

Gets the RfcommServiceId of this local RFCOMM service instance.

public : RfcommServiceId ServiceId { get; }public RfcommServiceId ServiceId { get; }Public ReadOnly Property ServiceId As RfcommServiceId// You can use this property in JavaScript.
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId of the local RFCOMM service instance.

Methods

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

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

public : static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId serviceId)public static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId serviceId)Public Static Function CreateAsync(serviceId As RfcommServiceId) As IAsyncOperation( Of RfcommServiceProvider )// You can use this method in JavaScript.
Parameters
serviceId
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId to be hosted locally.

Returns

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

Begins advertising the SDP attributes.

public : void StartAdvertising(StreamSocketListener listener)public void StartAdvertising(StreamSocketListener listener)Public Function StartAdvertising(listener As StreamSocketListener) As void// You can use this method in JavaScript.
Parameters
listener
StreamSocketListener StreamSocketListener StreamSocketListener StreamSocketListener

The StreamSocketListener that is listening for incoming connections.

See Also

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

Begins advertising the SDP attributes.

public : void StartAdvertising(StreamSocketListener listener, bool radioDiscoverable)public void StartAdvertising(StreamSocketListener listener, Boolean radioDiscoverable)Public Function StartAdvertising(listener As StreamSocketListener, radioDiscoverable As Boolean) As void// You can use this method in JavaScript.
Parameters
listener
StreamSocketListener StreamSocketListener StreamSocketListener StreamSocketListener

The StreamSocketListener that is listening for incoming connections.

radioDiscoverable
bool Boolean Boolean Boolean

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

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)
See Also

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

Stops advertising the SDP attributes.

public : void StopAdvertising()public void StopAdvertising()Public Function StopAdvertising() As void// You can use this method in JavaScript.