Langue

BluetoothDevice.GetRfcommServicesForIdAsync Méthode

Définition

Surcharges

Nom Description
GetRfcommServicesForIdAsync(RfcommServiceId)

Récupère tous les services Rfcomm sur l’appareil Bluetooth distant correspondant au RfcommServiceId spécifié.

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Récupère tous les services Rfcomm mis en cache sur l’appareil Bluetooth distant correspondant au RfcommServiceId spécifié.

GetRfcommServicesForIdAsync(RfcommServiceId)

Récupère tous les services Rfcomm sur l’appareil Bluetooth distant correspondant au RfcommServiceId spécifié.

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)

Paramètres

serviceId
RfcommServiceId

ID de service Rfcomm.

Retours

Une fois l’opération asynchrone terminée, retourne un objet RfcommDeviceServicesResult .

Attributs

Configuration requise pour Windows

Configuration requise Description
Famille d’appareils
Windows 10 Anniversary Edition (introduit dans 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v3.0)
Fonctionnalités de l’application
bluetooth

Voir aussi

S’applique à

GetRfcommServicesForIdAsync(RfcommServiceId, BluetoothCacheMode)

Récupère tous les services Rfcomm mis en cache sur l’appareil Bluetooth distant correspondant au RfcommServiceId spécifié.

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)

Paramètres

serviceId
RfcommServiceId

ID de service Rfcomm.

cacheMode
BluetoothCacheMode

Mode cache.

Retours

Une fois l’opération asynchrone terminée, retourne un objet RfcommDeviceServicesResult .

Attributs

Configuration requise pour Windows

Configuration requise Description
Famille d’appareils
Windows 10 Anniversary Edition (introduit dans 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v3.0)
Fonctionnalités de l’application
bluetooth

Voir aussi

S’applique à