共用方式為


BluetoothLEAdvertisementReceivedEventArgs 類別

定義

提供BluetoothLEAdvertisementWatcherReceived事件的資料。 BluetoothLEAdvertisementReceivedEventArgs 實例會在BluetoothLEAdvertisementWatcher物件上發生Received事件時建立。

public ref class BluetoothLEAdvertisementReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothLEAdvertisementReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothLEAdvertisementReceivedEventArgs
Public NotInheritable Class BluetoothLEAdvertisementReceivedEventArgs
繼承
Object Platform::Object IInspectable BluetoothLEAdvertisementReceivedEventArgs
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
bluetooth

備註

Per BluetoothSignalStrengthFilter,當裝置訊號超出範圍時,將會傳送「超出範圍」事件,其中包含最後看到的廣告資料, 並將 RawSignalStrengthInDBm 值設定為 -127。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
2004 19041 BluetoothAddressType
2004 19041 IsAnonymous
2004 19041 IsConnectable
2004 19041 IsDirected
2004 19041 IsScannable
2004 19041 IsScanResponse
2004 19041 TransmitPowerLevelInDBm

屬性

Advertisement

取得收到的藍牙 LE 廣告承載資料。

AdvertisementType

取得所接收藍牙 LE 公告封包的類型。

BluetoothAddress

取得傳送藍牙 LE 公告之裝置的藍牙位址。

BluetoothAddressType

擷取已接收公告的藍牙網址類別型。

IsAnonymous

指出是否已從收到的公告中省略藍牙位址。

IsConnectable

指出接收的廣告是否可連線。

IsDirected

指出是否已導向接收的廣告。

IsScannable

指出接收的廣告是否可掃描。

IsScanResponse

指出收到的公告是否為掃描回應。

RawSignalStrengthInDBm

針對這個收到的藍牙 LE 公告事件,取得接收的訊號強度指標 (RSSI) 值。 此值可能是未經處理的 RSSI 或篩選的 RSSI,視透過 BluetoothSignalStrengthFilter設定的篩選設定而定。

Timestamp

取得 發生 Received 事件時的時間戳記。

TransmitPowerLevelInDBm

表示廣告的接收傳輸能力。

適用於

另請參閱