In The Hand LtdIn The Hand
PingOptions Class
NamespacesInTheHand.Net.NetworkInformationPingOptions
.NET Components for Mobility
Used to control how Ping data packets are transmitted.
Declaration Syntax
C#Visual Basic
public class PingOptions
Public Class PingOptions
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
PingOptions()()()()
Initializes a new instance of the PingOptions class.

PingOptions(Int32, Boolean)
Initializes a new instance of the PingOptions class and sets the Time to Live and fragmentation values.

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

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Ttl
Gets or sets the number of routing nodes that can forward the Ping data before it is discarded.

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

The Ttl property specifies the Time to Live for packets sent by the Ping class. This value indicates the number of routing nodes that can forward a Ping 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 DontFragment 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 PingOptions class are passed to the Send(String) method, and the PingReply class returns instances of PingOptions via the Options property.

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

Inheritance Hierarchy
Object
PingOptions

Assembly: InTheHand.Net (Module: InTheHand.Net) Version: 7.0.0.0