BluetoothClassOfDevice Klasse

Definition

Stellt Funktionen bereit, um die Bluetooth Class Of Device (Bluetooth COD)-Informationen für ein Gerät zu bestimmen.

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
Vererbung
Object Platform::Object IInspectable BluetoothClassOfDevice
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
App-Funktionen
bluetooth

Eigenschaften

MajorClass

Ruft den Hauptklassencode des Bluetooth-Geräts ab.

MinorClass

Ruft den Nebenklassencode des Geräts ab.

RawValue

Ruft die Bluetooth-Geräteklasse-Informationen ab, die als ganzzahliger Wert dargestellt werden.

ServiceCapabilities

Ruft die Dienstfunktionen des Geräts ab.

Methoden

FromParts(BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities)

Erstellt ein BluetoothClassOfDevice-Objekt , indem Werte für BluetoothMajorClass, BluetoothMinorClass und BluetoothClassOfDevice bereitgestellt werden.

FromRawValue(UInt32)

Erstellt ein BluetoothClassOfDevice-Objekt aus einem unformatierten ganzzahligen Wert, der die Hauptklasse, Nebenklasse und Dienstfunktionen des Geräts darstellt.

Gilt für: