RfcommServiceProvider RfcommServiceProvider RfcommServiceProvider 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
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

Gets a collection of SDP attributes for advertising.

public IMap<uint, IBuffer> SdpRawAttributes { get; }public IMap<uint, IBuffer> SdpRawAttributes { get; }Public ReadOnly Property SdpRawAttributes As IMap<uint, IBuffer>
Value

The collection of SDP attributes for advertising.

Attributes

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId of the local RFCOMM service instance.

Attributes

Methods

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 )
Parameters
serviceId
RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId to be hosted locally.

Returns

The RfcommServiceProvider object that represents the local RFCOMM service instance.

Attributes

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
Parameters
listener
StreamSocketListener StreamSocketListener StreamSocketListener

The StreamSocketListener that is listening for incoming connections.

Attributes

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

Begins advertising the SDP attributes.

public void StartAdvertising(StreamSocketListener listener, Boolean radioDiscoverable)public void StartAdvertising(StreamSocketListener listener, Boolean radioDiscoverable)Public Function StartAdvertising(listener As StreamSocketListener, radioDiscoverable As Boolean) As void
Parameters
listener
StreamSocketListener StreamSocketListener StreamSocketListener

The StreamSocketListener that is listening for incoming connections.

radioDiscoverable
System.Boolean System.Boolean System.Boolean

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

Attributes

StopAdvertising() StopAdvertising() StopAdvertising()

Stops advertising the SDP attributes.

public void StopAdvertising()public void StopAdvertising()Public Function StopAdvertising() As void
Attributes