語言

BluetoothClassOfDevice 類別

定義

提供判斷裝置藍牙裝置類別(Bluetooth COD)資訊的功能。

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
繼承
Object Platform::Object IInspectable BluetoothClassOfDevice
屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
bluetooth

屬性

名稱 Description
MajorClass

取得藍牙裝置的 Major Class 代碼。

MinorClass

取得裝置的次要類別代碼。

RawValue

取得藍牙裝置類別資訊,以整數值表示。

ServiceCapabilities

取得裝置的服務能力。

方法

名稱 Description
FromParts(BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities)

透過提供 BluetoothMajorClass、BluetoothMinorClass 和 BluetoothClassOfDevice 的值來建立 BluetoothClassOfDevice 物件。

FromRawValue(UInt32)

從代表裝置的主要類別、次要類別及服務能力的原始整數值建立 BluetoothClassOfDevice 物件。

適用於