Share via


BluetoothDevice.GetRfcommServicesAsync Method

Definition

Overloads

GetRfcommServicesAsync()

Retrieves all Rfcomm Services on the remote Bluetooth Device.

GetRfcommServicesAsync(BluetoothCacheMode)

Retrieves all cached Rfcomm Services on the remote Bluetooth Device.

GetRfcommServicesAsync()

Retrieves all Rfcomm Services on the remote Bluetooth Device.

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesAsync() = GetRfcommServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync();
[Windows.Foundation.Metadata.Overload("GetRfcommServicesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync();
function getRfcommServicesAsync()
Public Function GetRfcommServicesAsync () As IAsyncOperation(Of RfcommDeviceServicesResult)

Returns

After the asynchronous operation completes, returns a RfcommDeviceServicesResult object.

Attributes

Windows requirements

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

See also

Applies to

GetRfcommServicesAsync(BluetoothCacheMode)

Retrieves all cached Rfcomm Services on the remote Bluetooth Device.

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesAsync(BluetoothCacheMode cacheMode) = GetRfcommServicesAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync(BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesAsync(BluetoothCacheMode cacheMode);
function getRfcommServicesAsync(cacheMode)
Public Function GetRfcommServicesAsync (cacheMode As BluetoothCacheMode) As IAsyncOperation(Of RfcommDeviceServicesResult)

Parameters

cacheMode
BluetoothCacheMode

The cache mode.

Returns

After the asynchronous operation completes, returns a RfcommDeviceServicesResult object.

Attributes

Windows requirements

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

See also

Applies to