BluetoothDevice.GetRfcommServicesForIdAsync Método

Definición

Sobrecargas

GetRfcommServicesForIdAsync(RfcommServiceId)

Recupera todos los servicios rfcomm en el dispositivo Bluetooth remoto que coincida con el rfcommServiceId especificado.

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Recupera todos los servicios Rfcomm almacenados en caché en el dispositivo Bluetooth remoto que coincidan con el rfcommServiceId especificado.

GetRfcommServicesForIdAsync(RfcommServiceId)

Recupera todos los servicios rfcomm en el dispositivo Bluetooth remoto que coincida con el rfcommServiceId especificado.

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesForIdAsync(RfcommServiceId ^ serviceId) = GetRfcommServicesForIdAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId const& serviceId);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId serviceId);
function getRfcommServicesForIdAsync(serviceId)
Public Function GetRfcommServicesForIdAsync (serviceId As RfcommServiceId) As IAsyncOperation(Of RfcommDeviceServicesResult)

Parámetros

serviceId
RfcommServiceId

Identificador de servicio rfcomm.

Devoluciones

Una vez completada la operación asincrónica, devuelve un objeto RfcommDeviceServicesResult .

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 Anniversary Edition (se introdujo en la versión 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v3.0)
Características de aplicaciones
bluetooth

Consulte también

Se aplica a

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Recupera todos los servicios Rfcomm almacenados en caché en el dispositivo Bluetooth remoto que coincidan con el rfcommServiceId especificado.

public:
 virtual IAsyncOperation<RfcommDeviceServicesResult ^> ^ GetRfcommServicesForIdAsync(RfcommServiceId ^ serviceId, BluetoothCacheMode cacheMode) = GetRfcommServicesForIdAsync;
/// [Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdWithCacheModeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId const& serviceId, BluetoothCacheMode const& cacheMode);
[Windows.Foundation.Metadata.Overload("GetRfcommServicesForIdWithCacheModeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<RfcommDeviceServicesResult> GetRfcommServicesForIdAsync(RfcommServiceId serviceId, BluetoothCacheMode cacheMode);
function getRfcommServicesForIdAsync(serviceId, cacheMode)
Public Function GetRfcommServicesForIdAsync (serviceId As RfcommServiceId, cacheMode As BluetoothCacheMode) As IAsyncOperation(Of RfcommDeviceServicesResult)

Parámetros

serviceId
RfcommServiceId

Identificador de servicio rfcomm.

cacheMode
BluetoothCacheMode

Modo de caché.

Devoluciones

Una vez completada la operación asincrónica, devuelve un objeto RfcommDeviceServicesResult .

Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 Anniversary Edition (se introdujo en la versión 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v3.0)
Características de aplicaciones
bluetooth

Consulte también

Se aplica a