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

プロパティ

AreClassicSecureConnectionsSupported

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

AreLowEnergySecureConnectionsSupported

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

BluetoothAddress

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

DeviceId

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

IsAdvertisementOffloadSupported

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

IsCentralRoleSupported

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

IsClassicSupported

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

IsExtendedAdvertisingSupported

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

IsLowEnergySupported

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

IsPeripheralRoleSupported

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

MaxAdvertisementDataLength

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

メソッド

FromIdAsync(String)

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

GetDefaultAsync()

既定の BluetoothAdapter を取得します。

GetDeviceSelector()

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

GetRadioAsync()

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

適用対象