Share via


VpnService.Builder.AddAddress Method

Definition

Overloads

AddAddress(InetAddress, Int32)

Add a network address to the VPN interface.

AddAddress(String, Int32)

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

AddAddress(InetAddress, Int32)

Add a network address to the VPN interface.

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

Parameters

address
InetAddress
prefixLength
Int32

Returns

Attributes

Exceptions

if the address is invalid.

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

AddAddress(String, Int32)

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

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

Parameters

address
String
prefixLength
Int32

Returns

Attributes

Exceptions

if the address is invalid.

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.

See also

  • <xref:Android.Net.VpnService.Builder.AddAddress(Java.Net.InetAddress%2c+System.Int32)>

Applies to