Ping IP——一次还是多次?

Ping IPs — One time or multiple times?

我正在使用下面的代码来 ping IP 地址并检查它是否在线。 现在只想知道,这个 C# 的 ping.Send(ipAddress) 只会执行 1 次还是 3 次?

Ping ping = new Ping();
PingReply pingReply = ping.Send(ipAddress);

if (pingReply.Status == IPStatus.Success)
{
    // Proceed as normal.
}
else
{
    // Send email to Admin.
}

一次调用 ping.Send 将发送一个 ICMP 数据包。 the documentation 中没有任何内容表示进行了多次尝试:

Attempts to send an Internet Control Message Protocol (ICMP) echo message to the specified computer, and receive a corresponding ICMP echo reply message from that computer.

它会像方法描述中所说的那样执行一次 ping。

Attempts to send an Internet Control Message Protocol (ICMP) echo message with the specified data buffer to the computer that has the specified IPAddress, and receive a corresponding ICMP echo reply message from that computer. This method allows you to specify a time-out value for the operation.

来自here