 | PingerSendPingAsync Method (IPAddress, Int32) |
Pings a IP address.
Namespace:
Neon.Net
Assembly:
Neon.Common (in Neon.Common.dll) Version: 2.10.0
Syntaxpublic Task<PingReply> SendPingAsync(
IPAddress address,
int timeoutMilliseconds = 2000
)
Public Function SendPingAsync (
address As IPAddress,
Optional timeoutMilliseconds As Integer = 2000
) As Task(Of PingReply)
public:
Task<PingReply^>^ SendPingAsync(
IPAddress^ address,
int timeoutMilliseconds = 2000
)
member SendPingAsync :
address : IPAddress *
?timeoutMilliseconds : int
(* Defaults:
let _timeoutMilliseconds = defaultArg timeoutMilliseconds 2000
*)
-> Task<PingReply>
Parameters
- address
- Type: System.NetIPAddress
The target address. - timeoutMilliseconds (Optional)
- Type: SystemInt32
Optional timeout in milliseconds (defaults to 2000).
Return Value
Type:
TaskPingReplyA
PingReply.
See Also