Partager via


WifiManager.UpdateNetwork(WifiConfiguration) Method

Definition

Update the network description of an existing configured network.

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

Parameters

config
WifiConfiguration

the set of variables that describe the configuration, contained in a WifiConfiguration object. It may be sparse, so that only the items that are being changed are non-null. The networkId field must be set to the ID of the existing network being updated.

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