System 2.0.0.0 4.0.0.0 System.Object

The class provides the and properties to control how Internet Control Message Protocol (ICMP) echo request packets are transmitted.

The property specifies the Time to Live for packets sent by the class. This value indicates the number of routing nodes that can forward a packet before it is discarded. Setting this option is useful if you want to test the number of forwards, also known as hops, are required to send a packet from a source computer to a destination computer.

The property controls whether data sent to a remote host 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.

Instances of the class are passed to the and methods, and the class returns instances of via the property.

For a list of initial property values for an instance of , see the constructor.

Used to control how data packets are transmitted.

- Constructor
  2.0.0.0
  4.0.0.0

  The following table shows initial property values for an instance of .

  Property

  Initial Value

  128

  false

  You can set the properties to new values before calling or .

  Initializes a new instance of the class.

- Constructor
  2.0.0.0
  4.0.0.0

  The parameter limits the number of routers and gateways that can forward the data. This is useful for testing the length of the route between the local and remote computers. The parameter allows you to test the maximum transmission unit (MTU) of the routers and gateways used to transmit the packet.

  Initializes a new instance of the class and sets the Time to Live and fragmentation values.

  An value greater than zero that specifies the number of times that the data packets can be forwarded.
  true to prevent data sent to the remote host from being fragmented; otherwise, false.
- Property
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  Applications use this property to control whether data sent to a remote host by the 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 .

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

- Property
  2.0.0.0
  4.0.0.0
  System.Int32 To be added.

  As gateways and routers transmit packets through a network, they decrement the current Time-to-Live (TTL) value found in the packet header. If the TTL value reaches zero, the packet is deemed undeliverable and is discarded. This option is useful if you want to test the number of routers and gateways used to transmit the data.

  Gets or sets the number of routing nodes that can forward the data before it is discarded.