RfcommDeviceService RfcommDeviceService RfcommDeviceService RfcommDeviceService RfcommDeviceService Class

Definition

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

public : sealed class RfcommDeviceService : IRfcommDeviceService, IRfcommDeviceService2, IRfcommDeviceService3, IClosable
struct winrt::Windows::Devices::Bluetooth::Rfcomm::RfcommDeviceService : IRfcommDeviceService, IRfcommDeviceService2, IRfcommDeviceService3, IClosable
public sealed class RfcommDeviceService : IRfcommDeviceService, IRfcommDeviceService2, IRfcommDeviceService3, IDisposable
Public NotInheritable Class RfcommDeviceService Implements IRfcommDeviceService, IRfcommDeviceService2, IRfcommDeviceService3, IDisposable
// This class does not provide a public constructor.
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)
Capabilities
bluetooth

Properties

ConnectionHostName ConnectionHostName ConnectionHostName ConnectionHostName ConnectionHostName

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

ConnectionServiceName ConnectionServiceName ConnectionServiceName ConnectionServiceName ConnectionServiceName

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

Device Device Device Device Device

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

DeviceAccessInformation DeviceAccessInformation DeviceAccessInformation DeviceAccessInformation DeviceAccessInformation

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

MaxProtectionLevel MaxProtectionLevel MaxProtectionLevel MaxProtectionLevel MaxProtectionLevel

Gets the maximum SocketProtectionLevel supported by this RFCOMM service instance.

ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel

Gets the current SocketProtectionLevel of the RFCOMM service instance.

ServiceId ServiceId ServiceId ServiceId ServiceId

Gets the RfcommServiceId of this RFCOMM service instance.

Methods

Close() Close() Close() Close() Close()

Closes the RFCOMM device.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Gets an RfcommDeviceService object from a DeviceInformation Id for an RFCOMM service instance.

GetDeviceSelector(RfcommServiceId) GetDeviceSelector(RfcommServiceId) GetDeviceSelector(RfcommServiceId) GetDeviceSelector(RfcommServiceId) GetDeviceSelector(RfcommServiceId)

Gets an Advanced Query Syntax (AQS) string for identifying instances of an RFCOMM service. This string is passed to the CreateWatcher method.

GetDeviceSelectorForBluetoothDevice(BluetoothDevice) GetDeviceSelectorForBluetoothDevice(BluetoothDevice) GetDeviceSelectorForBluetoothDevice(BluetoothDevice) GetDeviceSelectorForBluetoothDevice(BluetoothDevice) GetDeviceSelectorForBluetoothDevice(BluetoothDevice)

Gets an Advanced Query Syntax (AQS) string for identifying instances of all Rfcomm services on a remote Bluetooth device.

GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode) GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode) GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode) GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode) 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) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId) 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) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode) GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)

Gets an Advanced Query Syntax (AQS) string for identifying instances of Rfcomm services on a remote Bluetooth device.

GetSdpRawAttributesAsync() GetSdpRawAttributesAsync() GetSdpRawAttributesAsync() GetSdpRawAttributesAsync() GetSdpRawAttributesAsync()

Gets the cached SDP attributes of the RFCOMM service instance.

GetSdpRawAttributesAsync(BluetoothCacheMode) GetSdpRawAttributesAsync(BluetoothCacheMode) GetSdpRawAttributesAsync(BluetoothCacheMode) GetSdpRawAttributesAsync(BluetoothCacheMode) GetSdpRawAttributesAsync(BluetoothCacheMode)

Gets the SDP attributes of the RFCOMM service instance.

RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync()

Used to request explicit access to the Rfcomm service. This invokes Device Consent and must be called on the UI thread. By default, unpaired devices do not require consent, while paired devices do. FromIdAsync will only display a consent prompt when called for a paired device. RequestAccessAsync allows the app to make the access request explicit in the event where the device may become paired in the future through other uses of the device.