Skip to content

Commit 8e409fc

Browse files
authored
Copy remark about DNS to SendPingAsync (#8482)
1 parent 302a7ff commit 8e409fc

File tree

1 file changed

+11
-0
lines changed
  • xml/System.Net.NetworkInformation

1 file changed

+11
-0
lines changed

xml/System.Net.NetworkInformation/Ping.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,17 @@
17711771
</AssemblyInfo>
17721772
<Docs>
17731773
<summary>Sends an Internet Control Message Protocol (ICMP) echo message to a computer, and receives a corresponding ICMP echo reply message from that computer as an asynchronous operation.</summary>
1774+
<remarks>
1775+
<format type="text/markdown"><![CDATA[
1776+
1777+
## Remarks
1778+
These methods do not cause your application's main thread to block. If you want to block while waiting for the ICMP echo reply message, use the <xref:System.Net.NetworkInformation.Ping.Send%2A> methods.
1779+
1780+
> [!NOTE]
1781+
> The IP address returned by any of the <xref:System.Net.NetworkInformation.Ping.SendPingAsync%2A> methods can originate from a malicious remote computer. Do not connect to the remote computer using this. Use DNS to determine the IP address of the machine to which you want to connect.
1782+
1783+
]]></format>
1784+
</remarks>
17741785
</Docs>
17751786
</MemberGroup>
17761787
<Member MemberName="SendPingAsync">

0 commit comments

Comments
 (0)