PingOptions コンストラクタ

名前 | 説明 |
---|---|
PingOptions () | PingOptions クラスの新しいインスタンスを初期化します。 |
PingOptions (Int32, Boolean) | PingOptions クラスの新しいインスタンスを初期化し、有効期間 (TTL) とフラグメンテーションの値を設定します。 |

PingOptions コンストラクタ (Int32, Boolean)
アセンブリ: System (system.dll 内)



ttl パラメータは、データを転送できるルーターやゲートウェイの数を制限します。これは、ローカル コンピュータとリモート コンピュータの間のルートの長さのテストに役立ちます。dontFragment パラメータによって、パケットの送信に使用するルーターやゲートウェイの MTU (Maximum Transmission Unit) をテストできます。

このコンストラクタを呼び出し、新しいインスタンスのプロパティ値を表示するコード例を次に示します。
// Set options for transmission: // The data can go through 64 gateways or routers // before it is destroyed, and the data packet // cannot be fragmented. PingOptions options = new PingOptions (64, true); Console.WriteLine ("Time to live: {0}", options.Ttl); Console.WriteLine ("Don't fragment: {0}", options.DontFragment);

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PingOptions コンストラクタ ()
アセンブリ: System (system.dll 内)




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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- PingOptions コンストラクタのページへのリンク