Share via


GattPresentationFormat.FromParts(Byte, Int32, UInt16, Byte, UInt16) 方法

定义

从部件创建 GattPresentationFormat 对象。

public:
 static GattPresentationFormat ^ FromParts(byte formatType, int exponent, unsigned short unit, byte namespaceId, unsigned short description);
 static GattPresentationFormat FromParts(byte const& formatType, int const& exponent, uint16_t const& unit, byte const& namespaceId, uint16_t const& description);
public static GattPresentationFormat FromParts(byte formatType, int exponent, ushort unit, byte namespaceId, ushort description);
function fromParts(formatType, exponent, unit, namespaceId, description)
Public Shared Function FromParts (formatType As Byte, exponent As Integer, unit As UShort, namespaceId As Byte, description As UShort) As GattPresentationFormat

参数

formatType
Byte

byte

格式类型。

exponent
Int32

int

指数。

unit
UInt16

unsigned short

uint16_t

单元。

namespaceId
Byte

byte

命名空间 ID。

description
UInt16

unsigned short

uint16_t

说明。

返回

GattPresentationFormat 的实例。

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
应用功能
bluetooth

适用于