Dela via


BluetoothLEDevice.RequestAccessAsync Method

Definition

Requests access to the Bluetooth LowEnergy device.

public:
 virtual IAsyncOperation<DeviceAccessStatus> ^ RequestAccessAsync() = RequestAccessAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DeviceAccessStatus> RequestAccessAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DeviceAccessStatus> RequestAccessAsync();
function requestAccessAsync()
Public Function RequestAccessAsync () As IAsyncOperation(Of DeviceAccessStatus)

Returns

Returns an asynchronous operation that completes with a DeviceAccessStatus.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to