Share via


BluetoothClassOfDevice Class

Definition

Provides functionality to determine the Bluetooth Class Of Device (Bluetooth COD) information for a device.

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
Inheritance
Object Platform::Object IInspectable BluetoothClassOfDevice
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
bluetooth

Properties

MajorClass

Gets the Major Class code of the Bluetooth device.

MinorClass

Gets the Minor Class code of the device.

RawValue

Gets the Bluetooth Class Of Device information, represented as an integer value.

ServiceCapabilities

Gets the service capabilities of the device.

Methods

FromParts(BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities)

Creates a BluetoothClassOfDevice object by supplying values for BluetoothMajorClass, BluetoothMinorClass and BluetoothClassOfDevice.

FromRawValue(UInt32)

Creates a BluetoothClassOfDevice object from a raw integer value representing the Major Class, Minor Class and Service Capabilities of the device.

Applies to