BluetoothLEAdvertisement.GetSectionsByType(Byte) 方法

定义

返回与 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)

参数

type
Byte

byte

播发部分类型

返回

与给定播发类型匹配的所有 BluetoothLEAdvertisementDataSection 的向量。 如果在有效负载中找不到此类部分,此方法将返回空列表。

Windows 要求

应用功能
bluetooth

适用于

另请参阅