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

命名空間識別碼。

description
UInt16

unsigned short

uint16_t

描述。

傳回

GattPresentationFormat 的實例。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
應用程式功能
bluetooth

適用於