다음을 통해 공유


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 어댑터가 나타내는 라디오를 가져옵니다.

적용 대상