WiFiAdapter.FindAllAdaptersAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Note
Some information relates to pre-released product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API will be affected by upcoming changes to operating system behavior, planned for fall 2024. For more info, see Changes to API behavior for Wi-Fi access and location.
A static method that initiates an asynchronous operation to enumerate all Wi-Fi adapters in the system.
Note that if you do not specify that your app has the wiFiControl capability in your app manifest, this method fails.
public:
static IAsyncOperation<IVectorView<WiFiAdapter ^> ^> ^ FindAllAdaptersAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IVectorView<WiFiAdapter>> FindAllAdaptersAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<WiFiAdapter>> FindAllAdaptersAsync();
function findAllAdaptersAsync()
Public Shared Function FindAllAdaptersAsync () As IAsyncOperation(Of IReadOnlyList(Of WiFiAdapter))
Returns
An asynchronous enumeration operation. On successful completion, returns a list of available Wi-Fi adapters.
If you do not specify that your app has the wiFiControl capability in your app manifest, this method fails.
- Attributes
Windows requirements
App capabilities |
wiFiControl
|