Dela via


GattPresentationFormat.FromParts(Byte, Int32, UInt16, Byte, UInt16) Method

Definition

Creates a GattPresentationFormat object from parts.

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

Parameters

formatType
Byte

byte

The Format Type.

exponent
Int32

int

The exponent.

unit
UInt16

unsigned short

uint16_t

The unit.

namespaceId
Byte

byte

The namespace ID.

description
UInt16

unsigned short

uint16_t

The description.

Returns

An instance of GattPresentationFormat.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to