Compartilhar via


BluetoothDevice.GetRfcommServicesForIdAsync Método

Definição

Sobrecargas

GetRfcommServicesForIdAsync(RfcommServiceId)

Recupera todos os Serviços Rfcomm no Dispositivo Bluetooth Remoto que correspondem ao RfcommServiceId especificado.

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Recupera todos os Serviços Rfcomm armazenados em cache no Dispositivo Bluetooth Remoto correspondente ao RfcommServiceId especificado.

GetRfcommServicesForIdAsync(RfcommServiceId)

Recupera todos os Serviços Rfcomm no Dispositivo Bluetooth Remoto que correspondem ao 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

A ID do serviço Rfcomm.

Retornos

Após a conclusão da operação assíncrona, retorna um objeto RfcommDeviceServicesResult .

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Anniversary Edition (introduzida na 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v3.0)
Funcionalidades do aplicativo
bluetooth

Confira também

Aplica-se a

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Recupera todos os Serviços Rfcomm armazenados em cache no Dispositivo Bluetooth Remoto correspondente ao 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

A ID do serviço Rfcomm.

cacheMode
BluetoothCacheMode

O modo de cache.

Retornos

Após a conclusão da operação assíncrona, retorna um objeto RfcommDeviceServicesResult .

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 Anniversary Edition (introduzida na 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v3.0)
Funcionalidades do aplicativo
bluetooth

Confira também

Aplica-se a