Dela via


BluetoothLEAdvertisement.GetSectionsByType(Byte) Method

Definition

Return a list of advertisement data sections that matches a given advertisement section type in a BluetoothLEAdvertisement.

public:
 virtual IVectorView<BluetoothLEAdvertisementDataSection ^> ^ GetSectionsByType(byte type) = GetSectionsByType;
IVectorView<BluetoothLEAdvertisementDataSection> GetSectionsByType(byte const& type);
public IReadOnlyList<BluetoothLEAdvertisementDataSection> GetSectionsByType(byte type);
function getSectionsByType(type)
Public Function GetSectionsByType (type As Byte) As IReadOnlyList(Of BluetoothLEAdvertisementDataSection)

Parameters

type
Byte

byte

The advertisement section type

Returns

A vector of all the BluetoothLEAdvertisementDataSection matching the given advertisement type. This method returns an empty list if no such sections are found in the payload.

Windows requirements

App capabilities
bluetooth

Applies to

See also