RfcommDeviceService class

RfcommDeviceService class

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

Syntax


var rfcommDeviceService = Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService;

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
Close Closes the RFCOMM device.
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 CreateWatcher method.
GetDeviceSelectorForBluetoothDevice(BluetoothDevice) Gets an Advanced Query Syntax (AQS) string for identifying instances of all Rfcomm services on a remote Bluetooth device.
GetDeviceSelectorForBluetoothDevice(BluetoothDevice,BluetoothCacheMode) Gets an Advanced Query Syntax (AQS) string for identifying cached instances of all Rfcomm services on a remote Bluetooth device.
GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice,RfcommServiceId) Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device.
GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice,RfcommServiceId,BluetoothCacheMode) Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device.
GetSdpRawAttributesAsync Gets the cached SDP attributes of the RFCOMM service instance.
GetSdpRawAttributesAsync(BluetoothCacheMode) Gets the SDP attributes of the RFCOMM service instance.
RequestAccessAsync Used to request explicit access to the Rfcomm service. This invokes Device Consent and must be called on the UI thread.

 

Properties

The RfcommDeviceService class has these properties.

PropertyAccess typeDescription

ConnectionHostName

Read-only

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

ConnectionServiceName

Read-only

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

Device

Read-only

Gets the BluetoothDevice object describing the device associated with the current RfcommDeviceService object.

DeviceAccessInformation

Read-only

The device access information. Used to check and monitor access.

MaxProtectionLevel

Read-only

Gets the maximum SocketProtectionLevel supported by this RFCOMM service instance.

ProtectionLevel

Read-only

Gets the current SocketProtectionLevel of the RFCOMM service instance.

ServiceId

Read-only

Gets the RfcommServiceId of this RFCOMM service instance.

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

None supported

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

Attributes

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

See also

Object

 

 

Show:
© 2016 Microsoft