Ikev2VpnProfile.Builder.SetLocalRoutesExcluded(Boolean) 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 whether local-network traffic bypasses the VPN.
[Android.Runtime.Register("setLocalRoutesExcluded", "(Z)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=33)]
public Android.Net.Ikev2VpnProfile.Builder SetLocalRoutesExcluded(bool excludeLocalRoutes);
[<Android.Runtime.Register("setLocalRoutesExcluded", "(Z)Landroid/net/Ikev2VpnProfile$Builder;", "", ApiSince=33)>]
member this.SetLocalRoutesExcluded : bool -> Android.Net.Ikev2VpnProfile.Builder
Parameters
- excludeLocalRoutes
- Boolean
true to exempt local routes; otherwise, false.
Returns
This builder.
- Attributes
Exceptions
Thrown when local routes are excluded for a non-bypassable VPN.
Remarks
Excluding local routes can allow destinations, including DNS servers, to bypass the VPN and cannot be used with a non-bypassable VPN.
Java documentation for android.net.Ikev2VpnProfile.Builder.setLocalRoutesExcluded(boolean).