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

注釈

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

受信した Bluetooth LE アドバタイズ ペイロード データを取得します。

AdvertisementType

受信した Bluetooth LE アドバタイズ パケットの種類を取得します。

BluetoothAddress

Bluetooth LE アドバタイズを送信するデバイスの Bluetooth アドレスを取得します。

BluetoothAddressType

受信したアドバタイズの Bluetooth アドレスの種類を取得します。

IsAnonymous

受信したアドバタイズメントから Bluetooth アドレスが省略されたかどうかを示します。

IsConnectable

受信したアドバタイズが接続可能かどうかを示します。

IsDirected

受信したアドバタイズが送信されるかどうかを示します。

IsScannable

受信したアドバタイズがスキャン可能かどうかを示します。

IsScanResponse

受信したアドバタイズがスキャン応答であるかどうかを示します。

RawSignalStrengthInDBm

受信した Bluetooth LE アドバタイズ イベントの受信信号強度インジケーター (RSSI) 値を dBm 単位で取得します。 この値は、 BluetoothSignalStrengthFilter を使用して構成されたフィルター設定に応じて、生の RSSI またはフィルター処理された RSSI です。

Timestamp

Received イベントが発生したときのタイムスタンプを取得します。

TransmitPowerLevelInDBm

アドバタイズの受信送信電力を表します。

適用対象

こちらもご覧ください