Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RfcommDeviceService class

Applies to Windows and Windows Phone

Represents an instance of a service on a Bluetooth BR device.

Syntax

Public NotInheritable Class RfcommDeviceService

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The RfcommDeviceService class has these types of members:

Methods

The RfcommDeviceService class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
FromIdAsync Gets an RfcommDeviceService object from a DeviceInformation Id for an RFCOMM service instance.
GetDeviceSelector Gets an Advanced Query Syntax (AQS) string for identifying instances of an RFCOMM service. This string is passed to the FindAllAsync or CreateWatcher method.
GetSdpRawAttributesAsync Gets the cached SDP attributes of the RFCOMM service instance.
GetSdpRawAttributesAsync(BluetoothCacheMode) Gets the SDP attributes of the RFCOMM service instance.

 

Properties

The RfcommDeviceService class has these properties.

PropertyAccess typeDescription

ConnectionHostName

Read-onlyGets the connection host name of the RFCOMM service instance, which is used to connect to the remote device.

ConnectionServiceName

Read-onlyGets the connection service name of the RFCOMM service instance, which is used to connect to the remote device.

Device

Read-onlyGets the BluetoothDevice object describing the device associated with the current RfcommDeviceService object.

MaxProtectionLevel

Read-onlyGets the maximum SocketProtectionLevel supported by this RFCOMM service instance.

ProtectionLevel

Read-onlyGets the current SocketProtectionLevel of the RFCOMM service instance.

ServiceId

Read-onlyGets the RfcommServiceId of this RFCOMM service instance.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

None supported [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Bluetooth.Rfcomm
Windows::Devices::Bluetooth::Rfcomm [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft