RfcommServiceProvider Class

Definition

Represents an instance of a local RFCOMM service.

public ref class RfcommServiceProvider sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RfcommServiceProvider final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RfcommServiceProvider final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RfcommServiceProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RfcommServiceProvider
Public NotInheritable Class RfcommServiceProvider
Inheritance
Object Platform::Object IInspectable RfcommServiceProvider
Attributes

Windows requirements

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

Remarks

Version history

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

Properties

SdpRawAttributes

Gets a collection of SDP attributes for advertising.

ServiceId

Gets the RfcommServiceId of this local RFCOMM service instance.

Methods

CreateAsync(RfcommServiceId)

Gets a RfcommServiceProvider object from a RfcommServiceId for an RFCOMM service instance.

StartAdvertising(StreamSocketListener, Boolean)

Begins advertising the SDP attributes.

StartAdvertising(StreamSocketListener)

Begins advertising the SDP attributes.

StopAdvertising()

Stops advertising the SDP attributes.

Applies to