The following example demonstrates how to perform a simple TraceRoute to the remote host, www.yahoo.com, and limits the number of hops to 30
[C#]
TraceRouteReplyCollection results = TraceRouteClient.Trace( "www.yahoo.com", 30 ); //write out the results Console.WriteLine( results.ToString() ); Console.WriteLine( "done."); Console.ReadLine();
[VB.NET]
Dim results As TraceRouteReplyCollection = TraceRouteClient.Trace("www.yahoo.com", 30) 'write out the results Console.WriteLine(results.ToString()) Console.WriteLine("done.") Console.ReadLine()
Copyright 2003 - Contact: Webmaster