BluetoothLEAppearance.FromParts(UInt16, UInt16) 方法

定义

通过提供 Category 的值创建 BluetoothLEAppearance 对象, (请参阅 BluetoothLEAppearanceCategories) 和 Subcategory (请参阅蓝牙 LE 设备的 BluetoothLEAppearanceSubcategories) 。

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

适用于