BluetoothClassOfDevice 類別

定義

提供功能來判斷裝置的藍牙類別 (藍牙 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 需求

裝置系列
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

屬性

MajorClass

取得藍牙裝置的主要類別程式碼。

MinorClass

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

RawValue

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

ServiceCapabilities

取得裝置的服務功能。

方法

FromParts(BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities)

藉由提供BluetoothMajorClassBluetoothMinorClassBluetoothClassOfDevice的值來建立BluetoothClassOfDevice物件。

FromRawValue(UInt32)

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

適用於