Share via


WifiManager.AddNetwork(WifiConfiguration) Method

Definition

Add a new network description to the set of configured networks.

[Android.Runtime.Register("addNetwork", "(Landroid/net/wifi/WifiConfiguration;)I", "GetAddNetwork_Landroid_net_wifi_WifiConfiguration_Handler")]
public virtual int AddNetwork (Android.Net.Wifi.WifiConfiguration? config);
[<Android.Runtime.Register("addNetwork", "(Landroid/net/wifi/WifiConfiguration;)I", "GetAddNetwork_Landroid_net_wifi_WifiConfiguration_Handler")>]
abstract member AddNetwork : Android.Net.Wifi.WifiConfiguration -> int
override this.AddNetwork : Android.Net.Wifi.WifiConfiguration -> int

Parameters

config
WifiConfiguration

the set of variables that describe the configuration, contained in a WifiConfiguration object.

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to