System.Net.NetworkInformation.PingOptions.DontFragment Property

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


public bool DontFragment { get; set; }


Documentation for this section has not yet been entered.


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.


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