System.Net.NetworkInformation.PingOptions.DontFragment Property

Gets or sets a bool value that controls fragmentation of the data sent to the remote host.

Syntax

public bool DontFragment { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Applications use this property to control whether data sent to a remote host by the System.Net.NetworkInformation.Ping class can be divided into multiple packets. This option is useful if you want to test the maximum transmission unit (MTU) of the routers and gateways used to transmit the packet. If this property is true and the data sent to the remote host is larger then the MTU of a gateway or router between the sender and the remote host, the ping operation fails with status IPStatus.PacketTooBig.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0