Dart.PowerTCP.SslSockets Namespace > Ping Class : PingType Property (Ping) |
Gets or sets whether the Ping sent is an ICMP packet, a UDP packet, or a TCP connection attempt.
[Visual Basic]
<CategoryAttribute("Behavior")>
<DescriptionAttribute("Gets or Sets the type of Ping protocol to use.")>
<DefaultValueAttribute()>
Public Property PingType As PingType
[C#]
[CategoryAttribute("Behavior")]
[DescriptionAttribute("Gets or Sets the type of Ping protocol to use.")]
[DefaultValueAttribute()]
public PingType PingType {get; set;}
[C++]
[CategoryAttribute("Behavior")]
[DescriptionAttribute("Gets or Sets the type of Ping protocol to use.")]
[DefaultValueAttribute()]
public: __property PingType get_PingType();
public: __property void set_PingType(
PingType value
);
[C++/CLI]
[CategoryAttribute("Behavior")]
[DescriptionAttribute("Gets or Sets the type of Ping protocol to use.")]
[DefaultValueAttribute()]
public:
property PingType PingType {
PingType get();
void set (PingType value);
}
A PingType value specifying the type of Ping to send. The default value is PingType.ICMP.
Typically, a Ping is comprised of an ICMP packet. However, some operating systems (such as Windows 2000 Server) do not allow non-administrative access to a raw socket which is required when sending an ICMP packet. In situations such as this, set the Ping.PingType to PingType.UDP or PingType.TCP to successfully Ping a host without having to give administrative access to the account.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.