VpnService.Builder.SetUnderlyingNetworks(Network[]) 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.
Sets the networks underlying the VPN.
[Android.Runtime.Register("setUnderlyingNetworks", "([Landroid/net/Network;)Landroid/net/VpnService$Builder;", "GetSetUnderlyingNetworks_arrayLandroid_net_Network_Handler", ApiSince=22)]
public virtual Android.Net.VpnService.Builder SetUnderlyingNetworks(Android.Net.Network[]? networks);
[<Android.Runtime.Register("setUnderlyingNetworks", "([Landroid/net/Network;)Landroid/net/VpnService$Builder;", "GetSetUnderlyingNetworks_arrayLandroid_net_Network_Handler", ApiSince=22)>]
abstract member SetUnderlyingNetworks : Android.Net.Network[] -> Android.Net.VpnService.Builder
override this.SetUnderlyingNetworks : Android.Net.Network[] -> Android.Net.VpnService.Builder
Parameters
- networks
- Network[]
null to allow any underlying network, an empty array for none, or the actual underlying networks.
Returns
This builder.
- 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.
Java documentation for android.net.VpnService.Builder.setUnderlyingNetworks(android.net.Network[]).