Bluetooth​Adapter Bluetooth​Adapter Bluetooth​Adapter Class

Definition

Represents a Bluetooth adapter.

public : sealed class BluetoothAdapter : IBluetoothAdapterpublic sealed class BluetoothAdapter : IBluetoothAdapterPublic NotInheritable Class BluetoothAdapter Implements IBluetoothAdapter
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

Properties

BluetoothAddress BluetoothAddress BluetoothAddress

Gets the device address.

public : ulong BluetoothAddress { get; }public ulong BluetoothAddress { get; }Public ReadOnly Property BluetoothAddress As ulong
Value
ulong ulong ulong

The device address.

Attributes
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

DeviceId DeviceId DeviceId

Gets the device ID.

public : PlatForm::String DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string
Value
PlatForm::String string string

The ID of the device.

Attributes
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

IsAdvertisementOffloadSupported IsAdvertisementOffloadSupported IsAdvertisementOffloadSupported

Gets a boolean indicating if the adapter supports advertisement offload.

public : PlatForm::Boolean IsAdvertisementOffloadSupported { get; }public bool IsAdvertisementOffloadSupported { get; }Public ReadOnly Property IsAdvertisementOffloadSupported As bool
Value
PlatForm::Boolean bool bool

Gets a boolean indicating if the adapter supports advertisement offload.

Attributes

IsCentralRoleSupported IsCentralRoleSupported IsCentralRoleSupported

Gets a boolean indicating if the adapater supports LowEnergy central role.

public : PlatForm::Boolean IsCentralRoleSupported { get; }public bool IsCentralRoleSupported { get; }Public ReadOnly Property IsCentralRoleSupported As bool
Value
PlatForm::Boolean bool bool

Gets a boolean indicating if the adapater supports LowEnergy central role.

Attributes

IsClassicSupported IsClassicSupported IsClassicSupported

Gets a boolean indicating if the adapter supports the Bluetooth Classic transport type.

public : PlatForm::Boolean IsClassicSupported { get; }public bool IsClassicSupported { get; }Public ReadOnly Property IsClassicSupported As bool
Value
PlatForm::Boolean bool bool

Gets a boolean indicating if the adapter supports the Bluetooth Classic transport type.

Attributes

IsLowEnergySupported IsLowEnergySupported IsLowEnergySupported

Gets a boolean indicating if the adapater supports LowEnergy Bluetooth Transport type.

public : PlatForm::Boolean IsLowEnergySupported { get; }public bool IsLowEnergySupported { get; }Public ReadOnly Property IsLowEnergySupported As bool
Value
PlatForm::Boolean bool bool

Gets a boolean indicating if the adapater supports LowEnergy Bluetooth Transport type.

Attributes

IsPeripheralRoleSupported IsPeripheralRoleSupported IsPeripheralRoleSupported

Gets a boolean indicating if the adapater supports LowEnergy peripheral role.

public : PlatForm::Boolean IsPeripheralRoleSupported { get; }public bool IsPeripheralRoleSupported { get; }Public ReadOnly Property IsPeripheralRoleSupported As bool
Value
PlatForm::Boolean bool bool

Gets a boolean indicating if the adapater supports LowEnergy peripheral role.

Attributes

Methods

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Gets a BluetoothAdapter object identified by the given DeviceId.

public : static IAsyncOperation<BluetoothAdapter> FromIdAsync(PlatForm::String deviceId)public static IAsyncOperation<BluetoothAdapter> FromIdAsync(String deviceId)Public Static Function FromIdAsync(deviceId As String) As IAsyncOperation( Of BluetoothAdapter )
Parameters
deviceId
PlatForm::String String String

The DeviceId value that identifies the BluetoothAdapter instance.

Returns

After the asynchronous operation completes, returns the BluetoothAdapter object identified by the given DeviceId.

Attributes
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
bluetooth

GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()

Gets the default BluetoothAdapter.

public : static IAsyncOperation<BluetoothAdapter> GetDefaultAsync()public static IAsyncOperation<BluetoothAdapter> GetDefaultAsync()Public Static Function GetDefaultAsync() As IAsyncOperation( Of BluetoothAdapter )
Returns

An asynchronous operation that completes with a BluetoothAdapter.

Attributes

GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()

Gets an Advanced Query Syntax (AQS) string for identifying instances of this adapter. This string is passed to the FindAllAsync or CreateWatcher method.

public : static PlatForm::String GetDeviceSelector()public static string GetDeviceSelector()Public Static Function GetDeviceSelector() As string
Returns
PlatForm::String string string

Returns an AQS string.

Attributes

GetRadioAsync() GetRadioAsync() GetRadioAsync()

Gets the radio represented by this Bluetooth adapter.

public : IAsyncOperation<Radio> GetRadioAsync()public IAsyncOperation<Radio> GetRadioAsync()Public Function GetRadioAsync() As IAsyncOperation( Of Radio )
Returns

Returns an asynchronous operation that completes with the Radio.

Attributes