PingReply.Address プロパティ
アセンブリ: System (system.dll 内)


Send のオーバーロードによって返される Address は、悪意あるリモート コンピュータからのものである可能性があります。このアドレスを使用してリモート コンピュータに接続しないでください。DNS を使用して、接続するコンピュータの IP アドレスを確認してください。

ICMP エコー要求を同期的に送信し、このプロパティの値を表示するコード例を次に示します。
public static void SimplePing () { Ping pingSender = new Ping (); PingReply reply = pingSender.Send ("www.contoso.com"); if (reply.Status == IPStatus.Success) { Console.WriteLine ("Address: {0}", reply.Address.ToString ()); Console.WriteLine ("RoundTrip time: {0}", reply.RoundtripTime); Console.WriteLine ("Time to live: {0}", reply.Options.Ttl); Console.WriteLine ("Don't fragment: {0}", reply.Options.DontFragment); Console.WriteLine ("Buffer size: {0}", reply.Buffer.Length); } else { Console.WriteLine (reply.Status); } }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPingReply.Address プロパティを検索する場合は、下記のリンクをクリックしてください。

- PingReply.Address プロパティのページへのリンク