共用方式為


BluetoothLEAppearance 類別

定義

提供功能來判斷裝置的藍牙低能源 (LE) 外觀資訊。 若要取得這個類別的實例,請呼叫 BluetoothLEAppearance.FromRawValue 方法或 BluetoothLEAppearance.FromParts 方法。

public ref class BluetoothLEAppearance sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothLEAppearance final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothLEAppearance
Public NotInheritable Class BluetoothLEAppearance
繼承
Object Platform::Object IInspectable BluetoothLEAppearance
屬性

Windows 需求

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

屬性

Category

取得藍牙 LE 裝置的外觀類別值。

RawValue

取得藍牙 LE 裝置的外觀原始值。

SubCategory

取得藍牙 LE 裝置的外觀子類別值。

方法

FromParts(UInt16, UInt16)

藉由提供 Category (的BluetoothLEAppearanceCategories) 和 Subcategories (來建立BluetoothLEAppearance物件,請參閱BluetoothLEAppearanceSubcategories) 藍牙LE 裝置。

FromRawValue(UInt16)

提供代表藍牙 LE 裝置之 Category 和 Subcategory 的原始整數值,以建立 BluetoothLEAppearance 物件。

適用於