Subscriber portal
Initializes a new instance of the Ping class.
public: Ping()
The following code example demonstrates creating a Ping instance. The complete example is available in the Ping class overview.
Ping ^ pingSender = gcnew Ping; // When the PingCompleted event is raised, // the PingCompletedCallback method is called. pingSender->PingCompleted += gcnew PingCompletedEventHandler( PingCompletedCallback );
Ping ClassSystem.Net.NetworkInformation Namespace