VpnService.Builder.AddRoute VpnService.Builder.AddRoute Method

Definition

Overloads

AddRoute(InetAddress, Int32) AddRoute(InetAddress, Int32)

Add a network route to the VPN interface.

AddRoute(String, Int32) AddRoute(String, Int32)

Convenience method to add a network route to the VPN interface using a numeric address string.

AddRoute(InetAddress, Int32) AddRoute(InetAddress, Int32)

Add a network route to the VPN interface.

[Android.Runtime.Register("addRoute", "(Ljava/net/InetAddress;I)Landroid/net/VpnService$Builder;", "GetAddRoute_Ljava_net_InetAddress_IHandler")]
public virtual Android.Net.VpnService.Builder AddRoute (Java.Net.InetAddress address, int prefixLength);
abstract member AddRoute : Java.Net.InetAddress * int -> Android.Net.VpnService.Builder
override this.AddRoute : Java.Net.InetAddress * int -> Android.Net.VpnService.Builder

Parameters

prefixLength
Int32 Int32

Returns

Exceptions

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.

AddRoute(String, Int32) AddRoute(String, Int32)

Convenience method to add a network route to the VPN interface using a numeric address string.

[Android.Runtime.Register("addRoute", "(Ljava/lang/String;I)Landroid/net/VpnService$Builder;", "GetAddRoute_Ljava_lang_String_IHandler")]
public virtual Android.Net.VpnService.Builder AddRoute (string address, int prefixLength);
abstract member AddRoute : string * int -> Android.Net.VpnService.Builder
override this.AddRoute : string * int -> Android.Net.VpnService.Builder

Parameters

address
String String
prefixLength
Int32 Int32

Returns

Exceptions

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