WiFiAdapter.ScanAsync WiFiAdapter.ScanAsync WiFiAdapter.ScanAsync WiFiAdapter.ScanAsync WiFiAdapter.ScanAsync Method

Definition

Directs this adapter to initiate an asynchronous network scan.

public : IAsyncAction ScanAsync()
IAsyncAction ScanAsync() const;
public IAsyncAction ScanAsync()
Public Function ScanAsync() As IAsyncAction
Windows.Devices.WiFi.WiFiAdapter.scanAsync().done( /* Your success and error handlers */ );

Returns

An asynchronous scan operation. On successful completion, returns a list of networks scanned by this adapter.

Remarks

You should call this API from a foreground app. If it is called from a background task, you will see an "Access Denied" error message or a similar message.