BluetoothClassOfDevice Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fournit des fonctionnalités permettant de déterminer les informations de la classe d’appareil Bluetooth (COD Bluetooth) d’un appareil.
public ref class BluetoothClassOfDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothClassOfDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothClassOfDevice
Public NotInheritable Class BluetoothClassOfDevice
- Héritage
- Attributs
Configuration requise pour Windows
| Configuration requise | Description |
|---|---|
| Famille d’appareils |
Windows 10 (introduit dans 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
|
| Fonctionnalités de l’application |
bluetooth
|
Propriétés
| Nom | Description |
|---|---|
| MajorClass |
Obtient le code de classe principale de l’appareil Bluetooth. |
| MinorClass |
Obtient le code de classe mineure de l’appareil. |
| RawValue |
Obtient la classe Bluetooth des informations d’appareil, représentées sous la forme d’une valeur entière. |
| ServiceCapabilities |
Obtient les fonctionnalités de service de l’appareil. |
Méthodes
| Nom | Description |
|---|---|
| FromParts(BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities) |
Crée un objet BluetoothClassOfDevice en fournissant des valeurs pour BluetoothMajorClass, BluetoothMinorClass et BluetoothClassOfDevice. |
| FromRawValue(UInt32) |
Crée un objet BluetoothClassOfDevice à partir d’une valeur entière brute représentant la classe principale, la classe mineure et les fonctionnalités de service de l’appareil. |