WiFiAdapter.FromIdAsync(String) WiFiAdapter.FromIdAsync(String) WiFiAdapter.FromIdAsync(String) WiFiAdapter.FromIdAsync(String) WiFiAdapter.FromIdAsync(String) Method

Definition

A static method that initiates an asynchronous operation to get a WiFiAdapter object.

Note that if you do not specify that your app has the wiFiControl capability in your app manifest, this method fails.

public : static IAsyncOperation<WiFiAdapter> FromIdAsync(Platform::String deviceId)
static IAsyncOperation<WiFiAdapter> FromIdAsync(winrt::hstring deviceId) const;
public static IAsyncOperation<WiFiAdapter> FromIdAsync(String deviceId)
Public Shared Function FromIdAsync(deviceId As String) As IAsyncOperation(Of WiFiAdapter)
Windows.Devices.WiFi.WiFiAdapter.fromIdAsync(deviceId).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The Device ID of the Wi-Fi adapter to be retrieved. Obtain a Device ID through the Windows.Devices.Enumeration namespace.

Returns

An asynchronous get operation. On successful completion, returns a WiFiAdapter object specific to the requested Device ID.

If you do not specify that your app has the wiFiControl capability in your app manifest, this method fails.

Additional features and requirements

Capabilities
wiFiControl