Partager via


ConnectivityManager.SetProcessDefaultNetwork(Network) Method

Definition

Binds the current process to network.

[Android.Runtime.Register("setProcessDefaultNetwork", "(Landroid/net/Network;)Z", "")]
public static bool SetProcessDefaultNetwork (Android.Net.Network? network);
[<Android.Runtime.Register("setProcessDefaultNetwork", "(Landroid/net/Network;)Z", "")>]
static member SetProcessDefaultNetwork : Android.Net.Network -> bool

Parameters

network
Network

The Network to bind the current process to, or null to clear the current binding.

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