共用方式為


BluetoothLEAppearance.FromParts(UInt16, UInt16) 方法

定義

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

public:
 static BluetoothLEAppearance ^ FromParts(unsigned short appearanceCategory, unsigned short appearanceSubCategory);
 static BluetoothLEAppearance FromParts(uint16_t const& appearanceCategory, uint16_t const& appearanceSubCategory);
public static BluetoothLEAppearance FromParts(ushort appearanceCategory, ushort appearanceSubCategory);
function fromParts(appearanceCategory, appearanceSubCategory)
Public Shared Function FromParts (appearanceCategory As UShort, appearanceSubCategory As UShort) As BluetoothLEAppearance

參數

appearanceCategory
UInt16

unsigned short

uint16_t

藍牙 LE 外觀類別。 請參閱 BluetoothLEAppearanceCategories

appearanceSubCategory
UInt16

unsigned short

uint16_t

藍牙 LE 外觀子類別。 請參閱 BluetoothLEAppearanceSubcategories

傳回

從外觀類別和子類別建立的藍牙 LE 外觀物件。

Windows 需求

應用程式功能
bluetooth

適用於