RfcommServiceProvider RfcommServiceProvider RfcommServiceProvider RfcommServiceProvider Class

Represents an instance of a local RFCOMM service.

Syntax

Declaration

public sealed class RfcommServiceProviderpublic sealed class RfcommServiceProviderPublic NotInheritable Class RfcommServiceProviderpublic sealed class RfcommServiceProvider

Properties summary

Gets a collection of SDP attributes for advertising.

Gets the RfcommServiceId of this local RFCOMM service instance.

Methods summary

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

Begins advertising the SDP attributes.

Begins advertising the SDP attributes.

Stops advertising the SDP attributes.

Properties

  • SdpRawAttributes
    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>public IMap<uint, IBuffer> SdpRawAttributes { get; }

    Property Value

    • 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 RfcommServiceIdpublic RfcommServiceId ServiceId { get; }

    Property Value

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 )public static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId serviceId)

    Parameters

    Returns

    • The RfcommServiceProvider object that represents the local RFCOMM service instance.

  • 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 voidpublic void StartAdvertising(StreamSocketListener listener)

    Parameters

  • StartAdvertising(StreamSocketListener, Boolean)
    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 voidpublic void StartAdvertising(StreamSocketListener listener, Boolean radioDiscoverable)

    Parameters

  • StopAdvertising()
    StopAdvertising()
    StopAdvertising()
    StopAdvertising()

    Stops advertising the SDP attributes.

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Devices.Bluetooth.Rfcomm.dll