VpnService.Builder.SetMtu(Int32) 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.
Set the maximum transmission unit (MTU) of the VPN interface.
[Android.Runtime.Register("setMtu", "(I)Landroid/net/VpnService$Builder;", "GetSetMtu_IHandler")]
public virtual Android.Net.VpnService.Builder SetMtu (int mtu);
[<Android.Runtime.Register("setMtu", "(I)Landroid/net/VpnService$Builder;", "GetSetMtu_IHandler")>]
abstract member SetMtu : int -> Android.Net.VpnService.Builder
override this.SetMtu : int -> Android.Net.VpnService.Builder
Parameters
- mtu
- Int32
Returns
- Attributes
Exceptions
if the value is not positive.
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.