BluetoothClassOfDevice Kelas

Definisi

Menyediakan fungsionalitas untuk menentukan informasi Bluetooth Class Of Device (Bluetooth COD) untuk perangkat.

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
Warisan
Object Platform::Object IInspectable BluetoothClassOfDevice
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)
Kemampuan aplikasi
bluetooth

Properti

MajorClass

Mendapatkan kode Kelas Utama dari perangkat Bluetooth.

MinorClass

Mendapatkan kode Kelas Minor perangkat.

RawValue

Mendapatkan informasi Kelas Perangkat Bluetooth, yang dinyatakan sebagai nilai bilangan bulat.

ServiceCapabilities

Mendapatkan kemampuan layanan perangkat.

Metode

FromParts(BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities)

Membuat objek BluetoothClassOfDevice dengan menyediakan nilai untuk BluetoothMajorClass, BluetoothMinorClass , dan BluetoothClassOfDevice.

FromRawValue(UInt32)

Membuat objek BluetoothClassOfDevice dari nilai bilangan bulat mentah yang mewakili Kelas Utama, Kelas Minor, dan Kemampuan Layanan perangkat.

Berlaku untuk