BluetoothAdapter BluetoothAdapter BluetoothAdapter 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 string DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string
Value
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 bool IsAdvertisementOffloadSupported { get; }public bool IsAdvertisementOffloadSupported { get; }Public ReadOnly Property IsAdvertisementOffloadSupported As bool
Value
bool 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 bool IsCentralRoleSupported { get; }public bool IsCentralRoleSupported { get; }Public ReadOnly Property IsCentralRoleSupported As bool
Value
bool 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 bool IsClassicSupported { get; }public bool IsClassicSupported { get; }Public ReadOnly Property IsClassicSupported As bool
Value
bool 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 bool IsLowEnergySupported { get; }public bool IsLowEnergySupported { get; }Public ReadOnly Property IsLowEnergySupported As bool
Value
bool 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 bool IsPeripheralRoleSupported { get; }public bool IsPeripheralRoleSupported { get; }Public ReadOnly Property IsPeripheralRoleSupported As bool
Value
bool 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(String deviceId)public static IAsyncOperation<BluetoothAdapter> FromIdAsync(String deviceId)Public Static Function FromIdAsync(deviceId As String) As IAsyncOperation( Of BluetoothAdapter )
Parameters
deviceId
System.String System.String System.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 string GetDeviceSelector()public static string GetDeviceSelector()Public Static Function GetDeviceSelector() As string
Returns
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