Sprache

BluetoothClassOfDevice Klasse

Definition

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

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

Anforderungen Beschreibung
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

Name Beschreibung
MajorClass

Ruft den Hauptklassencode des Bluetooth-Geräts ab.

MinorClass

Ruft den Nebenklassencode des Geräts ab.

RawValue

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

ServiceCapabilities

Ruft die Dienstfunktionen des Geräts ab.

Methoden

Name Beschreibung
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 Hauptklassen-, Nebenklassen- und Dienstfunktionen des Geräts darstellt.

Gilt für: