Sdílet prostřednictvím


VpnService.Builder.SetMtu(Int32) Method

Definition

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.

Applies to