Language

BluetoothAdapter クラス

定義

Bluetooth アダプターを表します。

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

Windows の要件

要件 説明
デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)
アプリの機能
bluetooth

注釈

バージョン履歴

Windows のバージョン SDK のバージョン 付加価値
1803 17134 AreClassicSecureConnectionsSupported
1803 17134 AreLowEnergySecureConnectionsSupported
2004 19041 IsExtendedAdvertisingSupported
2004 19041 MaxAdvertisementDataLength

プロパティ

Name 説明
AreClassicSecureConnectionsSupported

クラシック ペアのBluetooth デバイスでセキュリティで保護された接続がサポートされているかどうかを示す値を取得または設定します。

AreLowEnergySecureConnectionsSupported

ペアの Bluetooth LE デバイスでセキュア接続がサポートされているかどうかを示す値を取得または設定します。

BluetoothAddress

デバイス アドレスを取得します。

DeviceId

デバイス ID を取得します。

IsAdvertisementOffloadSupported

アダプターがアドバタイズ オフロードをサポートしているかどうかを示すブール値を取得します。

IsCentralRoleSupported

adazater が LowEnergy の中央ロールをサポートしているかどうかを示すブール値を取得します。

IsClassicSupported

アダプターが Bluetooth クラシック トランスポートの種類をサポートしているかどうかを示すブール値を取得します。

IsExtendedAdvertisingSupported

アダプターが 5.0 拡張広告形式をサポートしているかどうかを示します。

IsLowEnergyCodedPhySupported

Bluetooth アダプターを表します。

IsLowEnergySupported

adazater が LowEnergy Bluetoothトランスポートの種類をサポートしているかどうかを示すブール値を取得します。

IsLowEnergyUncoded2MPhySupported

Bluetooth アダプターを表します。

IsPeripheralRoleSupported

adazater が LowEnergy 周辺機器ロールをサポートしているかどうかを示すブール値を取得します。

MaxAdvertisementDataLength

このアダプターによって公開できるアドバタイズの最大長を示します。

メソッド

Name 説明
FromIdAsync(String)

指定された DeviceId によって識別される BluetoothAdapter オブジェクトを取得します。

GetDefaultAsync()

既定の BluetoothAdapter を取得します。

GetDeviceSelector()

このアダプターのインスタンスを識別するための高度なクエリ構文 (AQS) 文字列を取得します。 この文字列は、FindAllAsync または CreateWatcher メソッドに渡されます。

GetRadioAsync()

このBluetooth アダプターによって表される無線を取得します。

適用対象